MCPcopy
hub / github.com/django/django / test_valid_site_id

Method test_valid_site_id

tests/sites_tests/tests.py:231–234  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

229 )
230
231 def test_valid_site_id(self):
232 for site_id in [1, None]:
233 with self.subTest(site_id=site_id), self.settings(SITE_ID=site_id):
234 self.assertEqual(check_site_id(None), [])
235
236
237@override_settings(ALLOWED_HOSTS=["example.com"])

Callers

nothing calls this directly

Calls 2

check_site_idFunction · 0.90
settingsMethod · 0.45

Tested by

no test coverage detected