Skip to content

Commit

Permalink
move intergation test into tests
Browse files Browse the repository at this point in the history
  • Loading branch information
godinlu committed Aug 2, 2024
1 parent 065e52f commit 370fdc5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
env:
USGS_USERNAME: ${{ secrets.USGSXPLORE_USERNAME }}
USGS_TOKEN: ${{ secrets.USGSXPLORE_TOKEN }}
run: poetry run pytest tests/
run: poetry run pytest --ignore=tests/test_download.py -k "not test_download"
File renamed without changes.
4 changes: 2 additions & 2 deletions integration_tests/test_download.py → tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def api():


def test_dataset_not_available(api: API):
"Test error when tthe dataset is not valid"
"Test error when the dataset is not valid"
entity_ids = ["this_is_not_valid"]
with TemporaryDirectory() as tmpdir:
with pytest.raises(USGSInvalidDataset):
Expand All @@ -40,7 +40,7 @@ def test_scenes_not_founds(api: API):


def test_scenes_not_available(api: API):
"Test that no file are donwload when scenes are not available"
"Test that no file are download when scenes are not available"
entity_ids = ["DZB1216-500523L001001"]
with TemporaryDirectory() as tmpdir:
api.download("declassii", entity_ids, tmpdir, pbar_type=True)
Expand Down

0 comments on commit 370fdc5

Please sign in to comment.