This file has the same shape as RGB.byte.tif, but no data.
(tmpdir, empty_data)
| 184 | |
| 185 | |
| 186 | def test_include_empty(tmpdir, empty_data): |
| 187 | """This file has the same shape as RGB.byte.tif, but no data.""" |
| 188 | inputfile = empty_data |
| 189 | outputfile = str(tmpdir.join("export.pmtiles")) |
| 190 | runner = CliRunner() |
| 191 | result = runner.invoke( |
| 192 | main_group, ["pmtiles", "--include-empty-tiles", inputfile, outputfile] |
| 193 | ) |
| 194 | assert result.exit_code == 0 |
| 195 | |
| 196 | with open(outputfile, 'rb') as f: |
| 197 | src = MmapSource(f) |
| 198 | assert len(list(all_tiles(src))) == 19 |
| 199 | |
| 200 | |
| 201 | def test_invalid_format_rgba(tmpdir, empty_data): |
nothing calls this directly
no test coverage detected
searching dependent graphs…