Skip to content

Commit

Permalink
clear serializer registry before all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebv committed Jan 23, 2024
1 parent c3f0611 commit 08f62d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 08f62d2

Please sign in to comment.