MCPcopy
hub / github.com/django/django / tearDown

Method tearDown

tests/auth_tests/test_auth_backends.py:767–771  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

765 cls.user3 = User.objects.create_user("test3", "test3@example.com", "test")
766
767 def tearDown(self):
768 # The get_group_permissions test messes with ContentTypes, which will
769 # be cached; flush the cache to ensure there are no side effects
770 # Refs #14975, #14925
771 ContentType.objects.clear_cache()
772
773 def test_has_perm(self):
774 self.assertIs(self.user1.has_perm("perm", TestObj()), False)

Callers

nothing calls this directly

Calls 1

clear_cacheMethod · 0.45

Tested by

no test coverage detected