Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert a landsat convert test to local #105

Merged
merged 1 commit into from
May 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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