MCPcopy
hub / github.com/django/django / test_default_never_expiring_timeout

Method test_default_never_expiring_timeout

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

Source from the content-addressed store, hash-verified

1629 self._perform_invalid_key_test(key, expected_warning)
1630
1631 def test_default_never_expiring_timeout(self):
1632 # Regression test for #22845
1633 with self.settings(
1634 CACHES=caches_setting_for_tests(
1635 base=self.base_params, exclude=memcached_excluded_caches, TIMEOUT=None
1636 )
1637 ):
1638 cache.set("infinite_foo", "bar")
1639 self.assertEqual(cache.get("infinite_foo"), "bar")
1640
1641 def test_default_far_future_timeout(self):
1642 # Regression test for #22845

Callers

nothing calls this directly

Calls 4

caches_setting_for_testsFunction · 0.85
settingsMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected