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

Method tearDown

tests/auth_tests/test_management.py:1460–1463  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1458 self.app_config = apps.get_app_config("auth")
1459
1460 def tearDown(self):
1461 Permission._meta.permissions = self._original_permissions
1462 Permission._meta.default_permissions = self._original_default_permissions
1463 ContentType.objects.clear_cache()
1464
1465 def test_default_permissions(self):
1466 permission_content_type = ContentType.objects.get_by_natural_key(

Callers

nothing calls this directly

Calls 1

clear_cacheMethod · 0.45

Tested by

no test coverage detected