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

Method test_patch_invalidates_cache

tests/test_adapter.py:55–58  ·  view source on GitHub ↗
(self, url, sess)

Source from the content-addressed store, hash-verified

53 assert not r2.from_cache
54
55 def test_patch_invalidates_cache(self, url, sess):
56 r2 = sess.patch(url, data={"foo": "bar"})
57 sess.get(url)
58 assert not r2.from_cache
59
60 def test_delete_invalidates_cache(self, url, sess):
61 r2 = sess.delete(url)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected