(tmpdir, data)
| 142 | |
| 143 | |
| 144 | def test_export_src_nodata(tmpdir, data): |
| 145 | inputfile = str(data.join("RGB.byte.tif")) |
| 146 | outputfile = str(tmpdir.join("export.pmtiles")) |
| 147 | runner = CliRunner() |
| 148 | result = runner.invoke( |
| 149 | main_group, |
| 150 | ["pmtiles", inputfile, outputfile, "--src-nodata", "0", "--dst-nodata", "0"], |
| 151 | ) |
| 152 | assert result.exit_code == 0 |
| 153 | |
| 154 | with open(outputfile, 'rb') as f: |
| 155 | src = MmapSource(f) |
| 156 | assert len(list(all_tiles(src))) == 19 |
| 157 | |
| 158 | |
| 159 | def test_export_bilinear(tmpdir, data): |
nothing calls this directly
no test coverage detected
searching dependent graphs…