From 370fdc5400df5a0d87925e259c8c87a1a708ec54 Mon Sep 17 00:00:00 2001 From: godinlu Date: Fri, 2 Aug 2024 11:29:32 +0200 Subject: [PATCH] move intergation test into tests --- .github/workflows/python-tests.yml | 2 +- {integration_tests => tests}/test_cli.py | 0 {integration_tests => tests}/test_download.py | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename {integration_tests => tests}/test_cli.py (100%) rename {integration_tests => tests}/test_download.py (96%) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index bf81789..6898b6e 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -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" diff --git a/integration_tests/test_cli.py b/tests/test_cli.py similarity index 100% rename from integration_tests/test_cli.py rename to tests/test_cli.py diff --git a/integration_tests/test_download.py b/tests/test_download.py similarity index 96% rename from integration_tests/test_download.py rename to tests/test_download.py index 531c7b1..8f4bbfb 100644 --- a/integration_tests/test_download.py +++ b/tests/test_download.py @@ -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): @@ -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)