Skip to content

Commit

Permalink
test start of all export types
Browse files Browse the repository at this point in the history
  • Loading branch information
dugalh committed Nov 14, 2022
1 parent ff952e8 commit e3ef43b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,14 @@ def test_metadata(landsat_ndvi_base_image: BaseImage, region_25ha: Dict, tmp_pat
assert key in band_dict


def test_export_drive(user_fix_base_image: BaseImage, region_25ha: Dict):
""" Test start of a small export to google drive. """
task = user_fix_base_image.export('test_export.tif', folder='geedim', scale=30, region=region_25ha, wait=False)
@pytest.mark.parametrize('type', [ExportType.drive, ExportType.asset, ExportType.cloud]) # yapf: disable
def test_start_export(type, user_fix_base_image: BaseImage, region_25ha: Dict):
""" Test start of a small export. """
# Note that this export should start successfully, but will ultimately fail for the asset and cloud options. For
# the asset option, there will be an overwrite issue. For cloud storage, there is no 'geedim' bucket.
task = user_fix_base_image.export(
'test_export', type=type, folder='geedim', scale=30, region=region_25ha, wait=False
)
assert task.active()
assert task.status()['state'] == 'READY'

Expand Down

0 comments on commit e3ef43b

Please sign in to comment.