# Path: tests/support/serializers.py
# def reset_data() -> None:
#     """Reset test data."""
#     global ARTISTS
#     global ALBUMS
#     global TRACKS
#     global NON_DEFAULT_IDS
#     ARTISTS = deepcopy(INITIAL_ARTISTS)
#     ALBUMS = deepcopy(INITIAL_ALBUMS)
#     TRACKS = deepcopy(INITIAL_TRACKS)
#     NON_DEFAULT_IDS = deepcopy(NON_DEFAULT_IDS)


import pytest
from rest_framework.test import APIRequestFactory
from tests.support.serializers import reset_data



@pytest.fixture
def factory() -> APIRequestFactory:
    """Provide an API Request Factory."""
    return APIRequestFactory()


@pytest.fixture(autouse=True)
def auto_reset_data() -> None:
    """Automatically reset test data before each test."""

# Path: tests/support/serializers.py
# def reset_data() -> None:
#     """Reset test data."""
#     global ARTISTS
#     global ALBUMS
#     global TRACKS
#     global NON_DEFAULT_IDS
#     ARTISTS = deepcopy(INITIAL_ARTISTS)
#     ALBUMS = deepcopy(INITIAL_ALBUMS)
#     TRACKS = deepcopy(INITIAL_TRACKS)
#     NON_DEFAULT_IDS = deepcopy(NON_DEFAULT_IDS)


# Path: tests/conftest.py
import pytest
from rest_framework.test import APIRequestFactory
from tests.support.serializers import reset_data




@pytest.fixture
def factory() -> APIRequestFactory:
    """Provide an API Request Factory."""
    return APIRequestFactory()


@pytest.fixture(autouse=True)
def auto_reset_data() -> None:
    """Automatically reset test data before each test."""

    reset_data()