MCPcopy
hub / github.com/getpelican/pelican / _get_cache_enabled_settings

Method _get_cache_enabled_settings

pelican/tests/test_cache.py:20–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 rmtree(self.temp_cache)
19
20 def _get_cache_enabled_settings(self):
21 settings = get_settings()
22 settings["CACHE_CONTENT"] = True
23 settings["LOAD_CONTENT_CACHE"] = True
24 settings["CACHE_PATH"] = self.temp_cache
25 return settings
26
27 def test_generator_caching(self):
28 """Test that cached and uncached content is same in generator level"""

Calls 1

get_settingsFunction · 0.90

Tested by

no test coverage detected