MCPcopy Create free account
hub / github.com/protomaps/PMTiles / empty_data

Function empty_data

python/rio-pmtiles/tests/conftest.py:44–51  ·  view source on GitHub ↗

A temporary directory containing a folder with an empty data file.

(tmpdir)

Source from the content-addressed store, hash-verified

42
43@pytest.fixture(scope="function")
44def empty_data(tmpdir):
45 """A temporary directory containing a folder with an empty data file."""
46 filename = test_files[0]
47 out_filename = os.path.join(str(tmpdir), "empty.tif")
48 with rasterio.open(filename, "r") as src:
49 with rasterio.open(out_filename, "w", **src.meta) as dst:
50 pass
51 return out_filename
52
53
54@pytest.fixture()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…