A temporary directory containing a folder with an empty data file.
(tmpdir)
| 42 | |
| 43 | @pytest.fixture(scope="function") |
| 44 | def 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() |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…