MCPcopy Create free account
hub / github.com/psf/cachecontrol / setup_method

Method setup_method

tests/test_storage_redis.py:12–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class TestRedisCache:
12 def setup_method(self):
13 self.conn = Mock()
14 self.cache = RedisCache(self.conn)
15
16 def test_set_expiration_datetime(self):
17 self.cache.set("foo", "bar", expires=datetime(2014, 2, 2))

Callers

nothing calls this directly

Calls 1

RedisCacheClass · 0.90

Tested by

no test coverage detected