@pytest.mark.remote
def test_s3_write_output_data(gtiff_s3, s3_example_tile, mp_s3_tmpdir):
    'Write and read output.'
    with mapchete.open(gtiff_s3.dict) as mp:
        process_tile = mp.config.process_pyramid.tile(*s3_example_tile)
        assert mp.config.output.profile()
        assert mp.config.output.empty(process_tile).mask.all()
        assert mp.config.output.get_path(process_tile)
        assert (not mp.config.output.tiles_exist(process_tile))
        mp.batch_process(tile=process_tile.id)
        assert mp.config.output.tiles_exist(process_tile)
        data = mp.config.output.read(process_tile)
        assert isinstance(data, np.ndarray)
        assert (not data[0].mask.all())
Write and read output.
@pytest.mark.remote
def test_s3_write_output_data(gtiff_s3, s3_example_tile, mp_s3_tmpdir):
    
    with mapchete.open(gtiff_s3.dict) as mp:
        process_tile = mp.config.process_pyramid.tile(*s3_example_tile)
        assert mp.config.output.profile()
        assert mp.config.output.empty(process_tile).mask.all()
        assert mp.config.output.get_path(process_tile)
        assert (not mp.config.output.tiles_exist(process_tile))
        mp.batch_process(tile=process_tile.id)
        assert mp.config.output.tiles_exist(process_tile)
        data = mp.config.output.read(process_tile)
        assert isinstance(data, np.ndarray)
        assert (not data[0].mask.all())