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

Function test_delete__keys

tests/unit/test_base_cache.py:76–80  ·  view source on GitHub ↗
(mock_session)

Source from the content-addressed store, hash-verified

74
75
76def test_delete__keys(mock_session):
77 r = mock_session.get(MOCKED_URL)
78 mock_session.cache.delete(r.cache_key, 'nonexistent_key')
79 mock_session.cache.delete('nonexistent_key')
80 assert not mock_session.cache.contains(url=MOCKED_URL)
81
82
83@skip_pypy # time-machine doesn't work on PyPy

Callers

nothing calls this directly

Calls 3

getMethod · 0.80
containsMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…