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

Method setUpClass

django/test/testcases.py:1830–1835  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

1828
1829 @classmethod
1830 def setUpClass(cls):
1831 super().setUpClass()
1832 cls.enterClassContext(
1833 modify_settings(ALLOWED_HOSTS={"append": cls.allowed_host})
1834 )
1835 cls._start_server_thread()
1836
1837 @classmethod
1838 def _start_server_thread(cls):

Callers

nothing calls this directly

Calls 3

modify_settingsClass · 0.90
_start_server_threadMethod · 0.80
setUpClassMethod · 0.45

Tested by

no test coverage detected