MCPcopy
hub / github.com/celery/celery / test_expires_as_int

Method test_expires_as_int

t/unit/backends/test_cache.py:124–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 self.tb.process_cleanup()
123
124 def test_expires_as_int(self):
125 tb = CacheBackend(backend='memory://', expires=10, app=self.app)
126 assert tb.expires == 10
127
128 def test_unknown_backend_raises_ImproperlyConfigured(self):
129 with pytest.raises(ImproperlyConfigured):

Callers

nothing calls this directly

Calls 1

CacheBackendClass · 0.90

Tested by

no test coverage detected