def test_export_disk_mixed_format(tmpdir): tpk = TPK("tests/data/states_filled.tpk") tpk.format = "mixed" # this is a hack to make test fail, need a test file for this path = str(tmpdir.join("tiles")) with pytest.raises(ValueError): tpk.to_disk(path) tpk.close()
def test_export_mbtiles_mixed_format(tmpdir): tpk = TPK('tests/data/states_filled.tpk') tpk.format = 'mixed' # this is a hack to make test fail, need a test file for this mbtiles_filename = str(tmpdir.join('test.mbtiles')) with pytest.raises(ValueError): tpk.to_mbtiles(mbtiles_filename) tpk.close()