diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..fbd06c3 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,9 @@ +import pytest + +from drf_pydantic.parse import SERIALIZER_REGISTRY + + +@pytest.fixture(autouse=True, scope="function") +def reset_serializers(): + SERIALIZER_REGISTRY.clear() + assert len(SERIALIZER_REGISTRY) == 0