MCPcopy Create free account
hub / github.com/requests-cache/requests-cache / init_cache

Method init_cache

tests/integration/test_filesystem.py:325–328  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

323
324class TestLRUDict:
325 def init_cache(self, **kwargs):
326 cache = LRUDict(CACHE_NAME, table_name='lru', use_temp=True, **kwargs)
327 cache.clear()
328 return cache
329
330 @classmethod
331 def teardown_class(cls):

Callers 10

test_get_setMethod · 0.95
test_deleteMethod · 0.95
test_countMethod · 0.95
test_clearMethod · 0.95
test_get_lruMethod · 0.95
test_sortedMethod · 0.95
test_total_sizeMethod · 0.95

Calls 2

clearMethod · 0.95
LRUDictClass · 0.90

Tested by

no test coverage detected