Skip to content

Commit

Permalink
fix no kwarg test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarshak committed Feb 27, 2024
1 parent d0a81a2 commit 6fc8945
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tile_mate/stitcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def toggle_hansen_url(url: str) -> str:

if year is not None:
if tile_key not in DATASETS_WITH_YEAR:
raise NotImplementedError('Year is only supported ' f'with {DATASETS_WITH_YEAR}')
raise ValueError('Year is only supported ' f'with {DATASETS_WITH_YEAR}')
if tile_key == 'hansen_annual_mosaic':
def update_hansen_landsat_mosaic_url_p(url):
return update_hansen_landsat_mosaic_url(url, year)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_stitch_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_cop100_dataset(year: int):


@pytest.mark.parametrize(
'dataset_shortname', ['hansen_gain', 'hansen_tree', 'hansen_lossyear', 'hand', 'pekel_water_occ_2021']
'dataset_shortname', ['hansen_gain', 'hansen_treecover_2000', 'hansen_lossyear', 'hand', 'pekel_water_occ_2021']
)
def test_no_kwarg_datasets(dataset_shortname):
bounds = [-120.45, 34.85, -120.15, 34.95]
Expand Down

0 comments on commit 6fc8945

Please sign in to comment.