Skip to content

Commit

Permalink
[nsidc_tests] Add assertion statements to check reqparams and orderIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Aug 22, 2024
1 parent 115ce4c commit 9090378
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions icepyx/tests/test_behind_NSIDC_API_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,9 @@ def test_download_granules_without_subsetting(reg, session, capsys):
assert out == ""
assert err == ""

Check warning on line 66 in icepyx/tests/test_behind_NSIDC_API_login.py

View check run for this annotation

Codecov / codecov/patch

icepyx/tests/test_behind_NSIDC_API_login.py#L63-L66

Added lines #L63 - L66 were not covered by tests

assert reg.reqparams == {"short_name": "ATL06", "version": "006", "page_size": 2000}
assert len(reg.granules.orderIDs) == 1
assert int(reg.granules.orderIDs[0]) >= 5_000_000_000_000

Check warning on line 70 in icepyx/tests/test_behind_NSIDC_API_login.py

View check run for this annotation

Codecov / codecov/patch

icepyx/tests/test_behind_NSIDC_API_login.py#L68-L70

Added lines #L68 - L70 were not covered by tests

reg.download_granules(path=path)

Check warning on line 72 in icepyx/tests/test_behind_NSIDC_API_login.py

View check run for this annotation

Codecov / codecov/patch

icepyx/tests/test_behind_NSIDC_API_login.py#L72

Added line #L72 was not covered by tests
# check that the max extent of the downloaded granules isn't subsetted

0 comments on commit 9090378

Please sign in to comment.