(self, cache)
| 27 | |
| 28 | @pytest.mark.asyncio |
| 29 | async def test_invalidate(self, cache): |
| 30 | await cache.set("/tmp/test.txt", "hello") |
| 31 | assert cache.contains("/tmp/test.txt") |
| 32 | removed = await cache.invalidate("/tmp/test.txt") |
| 33 | assert removed is True |
| 34 | assert not cache.contains("/tmp/test.txt") |
| 35 | |
| 36 | @pytest.mark.asyncio |
| 37 | async def test_invalidate_nonexistent(self, cache): |
nothing calls this directly
no test coverage detected