MCPcopy
hub / github.com/django/django / setUpClass

Method setUpClass

tests/auth_tests/test_forms.py:1168–1172  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

1166class PasswordResetFormTest(TestDataMixin, TestCase):
1167 @classmethod
1168 def setUpClass(cls):
1169 super().setUpClass()
1170 # This cleanup is necessary because contrib.sites cache
1171 # makes tests interfere with each other, see #11505
1172 Site.objects.clear_cache()
1173
1174 def assertEmailMessageSent(self, **kwargs):
1175 self.assertEqual(len(mail.outbox), 1)

Callers

nothing calls this directly

Calls 1

clear_cacheMethod · 0.45

Tested by

no test coverage detected