Skip to content

Commit d084bff

Browse files
committed
add test for track submission
1 parent 559a654 commit d084bff

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

icepyx/tests/integration/test_query.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,22 @@ def test_download_granules_without_subsetting(reg):
6060
65120027, # 62.1 MiB
6161
49749227, # 47.4 MiB
6262
]
63+
64+
65+
def test_tracks_only():
66+
"""
67+
Test that a Query can be created with only tracks specified (no cycles).
68+
"""
69+
70+
reg = ipx.Query(
71+
"ATL06", [151, -81, 158, -80], ["2019-12-02", "2019-12-02"], tracks=["1022"]
72+
)
73+
assert reg.tracks == ["1022"]
74+
assert reg.cycles == ["No orbital[cycle] parameters set"]
75+
76+
assert reg.CMRparams["options[readable_granule_name][pattern]"] == "true"
77+
assert reg.CMRparams["readable_granule_name[]"] == [
78+
"ATL06_??????????????_1022????_*"
79+
]
80+
81+
assert reg.avail_granules(ids=True) == [["ATL06_20191202203649_10220511_006_01.h5"]]

0 commit comments

Comments
 (0)