diff --git a/requirements.txt b/requirements.txt index 40f8a7f..535e8a0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ prefect>=2.0.0 -earthaccess +earthaccess>=0.7.0 diff --git a/tests/test_tasks.py b/tests/test_tasks.py index e9a0986..8e6b581 100644 --- a/tests/test_tasks.py +++ b/tests/test_tasks.py @@ -22,8 +22,12 @@ def test_flow(download_path): with TemporaryDirectory() as temp_dir: with prefect_test_harness(): + exp_files = [temp_dir + "/ATL08_20181105083647_05760107_005_01.h5"] + granules, files = test_flow(temp_dir) assert isinstance(granules, list) assert len(granules) == 1 - assert files == ["ATL08_20181105083647_05760107_005_01.h5"] - assert Path(temp_dir, "ATL08_20181105083647_05760107_005_01.h5").exists() + + assert files == exp_files + for file in exp_files: + assert Path(file).exists()