(tmpdir, data)
| 157 | |
| 158 | |
| 159 | def test_export_bilinear(tmpdir, data): |
| 160 | inputfile = str(data.join("RGB.byte.tif")) |
| 161 | outputfile = str(tmpdir.join("export.pmtiles")) |
| 162 | runner = CliRunner() |
| 163 | result = runner.invoke( |
| 164 | main_group, ["pmtiles", inputfile, outputfile, "--resampling", "bilinear"] |
| 165 | ) |
| 166 | assert result.exit_code == 0 |
| 167 | |
| 168 | with open(outputfile, 'rb') as f: |
| 169 | src = MmapSource(f) |
| 170 | assert len(list(all_tiles(src))) == 19 |
| 171 | |
| 172 | |
| 173 | def test_skip_empty(tmpdir, empty_data): |
nothing calls this directly
no test coverage detected
searching dependent graphs…