You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been testing our query counts, and found our tests weren't independent due to the caching of ContentTypes causing query counts to depend on test ordering.
There's a handy pytest-django fixture for clearing the Sites cache but not one for ContentTypes.
We've been testing our query counts, and found our tests weren't independent due to the caching of ContentTypes causing query counts to depend on test ordering.
There's a handy pytest-django fixture for clearing the Sites cache but not one for ContentTypes.
Is this something that would be accepted as an addition to this library? It would call
ContentType.objects.clear_cache()
The text was updated successfully, but these errors were encountered: