MCPcopy
hub / github.com/django/django / set_script_name

Method set_script_name

tests/settings_tests/tests.py:605–608  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

603
604class MediaURLStaticURLPrefixTest(SimpleTestCase):
605 def set_script_name(self, val):
606 clear_script_prefix()
607 if val is not None:
608 set_script_prefix(val)
609
610 def test_not_prefixed(self):
611 # Don't add SCRIPT_NAME prefix to absolute paths, URLs, or None.

Callers 2

test_not_prefixedMethod · 0.95

Calls 2

clear_script_prefixFunction · 0.90
set_script_prefixFunction · 0.90

Tested by

no test coverage detected