File: test_cache.py

package info (click to toggle)
rasterio 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,732 kB
  • sloc: python: 23,119; sh: 947; makefile: 275; xml: 29
file content (13 lines) | stat: -rw-r--r-- 288 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
"""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")