This file has the same shape as RGB.byte.tif, but no data.
(tmpdir, empty_data)
| 171 | |
| 172 | |
| 173 | def test_skip_empty(tmpdir, empty_data): |
| 174 | """This file has the same shape as RGB.byte.tif, but no data.""" |
| 175 | inputfile = empty_data |
| 176 | outputfile = str(tmpdir.join("export.pmtiles")) |
| 177 | runner = CliRunner() |
| 178 | result = runner.invoke(main_group, ["pmtiles", inputfile, outputfile]) |
| 179 | assert result.exit_code == 0 |
| 180 | |
| 181 | with open(outputfile, 'rb') as f: |
| 182 | src = MmapSource(f) |
| 183 | assert len(list(all_tiles(src))) == 0 |
| 184 | |
| 185 | |
| 186 | def test_include_empty(tmpdir, empty_data): |
nothing calls this directly
no test coverage detected
searching dependent graphs…