Skip to content

Commit

Permalink
fix tests failing after reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaS11 committed Dec 14, 2023
1 parent 5cc7ab5 commit cd9a564
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
22 changes: 12 additions & 10 deletions icepyx/tests/test_APIformatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,18 @@ def test_var_subset_list_fmt():
"start_delta_time": ["ancillary_data/start_delta_time"],
}
)
exp = """/ancillary_data/atlas_sdp_gps_epoch,
/ancillary_data/data_end_utc,
/ancillary_data/data_start_utc,
/ancillary_data/end_delta_time,
/ancillary_data/granule_end_utc,
/ancillary_data/granule_start_utc,
/profile_2/high_rate/latitude,
/profile_2/low_rate/latitude,
/orbit_info/sc_orient,
/ancillary_data/start_delta_time"""
exp = (
"/ancillary_data/atlas_sdp_gps_epoch,"
"/ancillary_data/data_end_utc,"
"/ancillary_data/data_start_utc,"
"/ancillary_data/end_delta_time,"
"/ancillary_data/granule_end_utc,"
"/ancillary_data/granule_start_utc,"
"/profile_2/high_rate/latitude,"
"/profile_2/low_rate/latitude,"
"/orbit_info/sc_orient,"
"/ancillary_data/start_delta_time"
)
assert obs == exp


Expand Down
8 changes: 4 additions & 4 deletions icepyx/tests/test_granules.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,10 +614,10 @@ def test_correct_granule_list_returned():

(obs_grans,) = reg_a.avail_granules(ids=True)
exp_grans = [
"ATL06_20190221121851_08410203_006_01.h5",
"ATL06_20190222010344_08490205_006_01.h5",
"ATL06_20190225121032_09020203_006_01.h5",
"ATL06_20190226005526_09100205_006_01.h5",
"ATL06_20190221121851_08410203_006_02.h5",
"ATL06_20190222010344_08490205_006_02.h5",
"ATL06_20190225121032_09020203_006_02.h5",
"ATL06_20190226005526_09100205_006_02.h5",
]
assert set(obs_grans) == set(exp_grans)

Expand Down

0 comments on commit cd9a564

Please sign in to comment.