rasterio/tests/test_cache.py
Sean Gillies 64474c1795
Introducing cache.invalidate() and invalidate_all() (#3276)
* Introducing cache.invalidate() and invalidate_all()

Resolves #3275

* Improve documentation of cache module

* Even more documentation
2024-12-14 19:03:25 -07:00

14 lines
288 B
Python

"""Tests of GDAL VSI cache invalidation."""
from rasterio import cache
def test_invalidate_all():
"""Cache is entirely invalidated."""
cache.invalidate_all()
def test_invalidate_pattern():
"""Cache is partially invalidated."""
cache.invalidate("https://example.com")