From a4aa9b471583911d4335b3366b9e131742fb1ea1 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Thu, 6 May 2021 11:33:56 -0600 Subject: [PATCH] Convert a landsat convert test to local The remote url disappeared, and having a remote test when you don't need one is flakey anyways. --- tests/landsat/test_commands.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/landsat/test_commands.py b/tests/landsat/test_commands.py index 1f8c4d2a..9d18042a 100644 --- a/tests/landsat/test_commands.py +++ b/tests/landsat/test_commands.py @@ -27,9 +27,6 @@ def create_subcommand_functions(self): landsat_stac_files = [str(TEST_FOLDER / f) for f in ALL_EXAMPLES] landsat_mtl_file = TEST_FOLDER / "LC08_L2SR_081119_20200101_20200823_02_T2_MTL.json" - landsat_stac_api = ( - "https://landsatlook.usgs.gov/sat-api/collections/" - "landsat-c2l2-sr/items/LC08_L2SR_081119_20200101_20200823_02_T2") @property def landsat_stac(self): @@ -81,7 +78,7 @@ def test_transform_static_stac_missing_asset_b2_b10(self): def test_transform_dynamic_stac(self): """Convert a URI of a STAC 0.7.0 document to a STAC 1.0.0.beta.2 document""" - item = stac_api_to_stac(self.landsat_stac_api) + item = stac_api_to_stac(self.landsat_stac_files[0]) item.validate() def test_transform_mtl(self):