MCPcopy
hub / github.com/django/django / setUp

Method setUp

tests/cache/tests.py:1797–1805  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1795 """
1796
1797 def setUp(self):
1798 super().setUp()
1799 self.dirname = self.mkdtemp()
1800 # Caches location cannot be modified through override_settings /
1801 # modify_settings, hence settings are manipulated directly here and the
1802 # setting_changed signal is triggered manually.
1803 for cache_params in settings.CACHES.values():
1804 cache_params["LOCATION"] = self.dirname
1805 setting_changed.send(self.__class__, setting="CACHES", enter=False)
1806
1807 def tearDown(self):
1808 super().tearDown()

Callers

nothing calls this directly

Calls 4

mkdtempMethod · 0.95
setUpMethod · 0.45
valuesMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected