def test_output_single_gtiff_compression(output_single_gtiff):
    tile_id = (5, 3, 7)
    with mapchete.open(dict(output_single_gtiff.dict, output=dict(output_single_gtiff.dict['output'], compress='deflate'))) as mp:
        process_tile = mp.config.process_pyramid.tile(*tile_id)
        assert ('compress' in mp.config.output.profile())
        assert (mp.config.output.profile()['compress'] == 'deflate')
        mp.batch_process(tile=process_tile.id)
    with rasterio.open(mp.config.output.path) as src:
        assert (src.profile['compress'] == 'deflate')
def test_output_single_gtiff_compression(output_single_gtiff):
    tile_id = (5, 3, 7)
    with mapchete.open(dict(output_single_gtiff.dict, output=dict(output_single_gtiff.dict['output'], compress='deflate'))) as mp:
        process_tile = mp.config.process_pyramid.tile(*tile_id)
        assert ('compress' in mp.config.output.profile())
        assert (mp.config.output.profile()['compress'] == 'deflate')
        mp.batch_process(tile=process_tile.id)
    with rasterio.open(mp.config.output.path) as src:
        assert (src.profile['compress'] == 'deflate')