Skip to content

Commit

Permalink
Convert a landsat convert test to local
Browse files Browse the repository at this point in the history
The remote url disappeared, and having a remote test when you don't
need one is flakey anyways.
  • Loading branch information
gadomski committed May 11, 2021
1 parent 90b8bb7 commit a4aa9b4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/landsat/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit a4aa9b4

Please sign in to comment.