Skip to content

Commit

Permalink
[nsidc_tests] Ensure that 3 processed_ATL06.h5 files are downloaded
Browse files Browse the repository at this point in the history
Check that 3 processed_ATL06_201902*.h5 files are downloaded after calling `.download_granules()`.
  • Loading branch information
weiji14 committed Aug 23, 2024
1 parent 2a42483 commit e47a1a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions icepyx/tests/test_behind_NSIDC_API_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Integration tests that require authentication to Earthdata login.
"""

import glob
import json
import os
import pytest
Expand Down Expand Up @@ -81,4 +82,5 @@ def test_download_granules_without_subsetting(reg, session, capsys):
assert int(reg.granules.orderIDs[0]) >= 5_000_000_000_000

reg.download_granules(path=path)
assert len(glob.glob(pathname=f"{path}/processed_ATL06_201902*.h5")) == 3
# check that the max extent of the downloaded granules isn't subsetted

0 comments on commit e47a1a5

Please sign in to comment.