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

Method setUpClass

tests/auth_tests/test_auth_backends.py:144–148  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

142
143 @classmethod
144 def setUpClass(cls):
145 cls.enterClassContext(
146 modify_settings(AUTHENTICATION_BACKENDS={"append": cls.backend})
147 )
148 super().setUpClass()
149
150 def setUp(self):
151 # The custom_perms test messes with ContentTypes, which will be cached.

Callers

nothing calls this directly

Calls 1

modify_settingsClass · 0.90

Tested by

no test coverage detected