MCPcopy
hub / github.com/django/django / test_custom_site_id

Method test_custom_site_id

tests/sites_tests/tests.py:333–338  ·  view source on GitHub ↗

#23945 - The configured ``SITE_ID`` should be respected.

(self)

Source from the content-addressed store, hash-verified

331
332 @override_settings(SITE_ID=35696)
333 def test_custom_site_id(self):
334 """
335 #23945 - The configured ``SITE_ID`` should be respected.
336 """
337 create_default_site(self.app_config, verbosity=0)
338 self.assertEqual(Site.objects.get().pk, 35696)
339
340 @override_settings() # Restore original ``SITE_ID`` afterward.
341 def test_no_site_id(self):

Callers

nothing calls this directly

Calls 2

create_default_siteFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected