Skip to content

Commit

Permalink
fix: Updating test for new filename syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
castelao committed Oct 4, 2023
1 parent f17057c commit be7d658
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/test_gsfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@
from OceanColor.gsfc import oceandata_file_search


@pytest.mark.skip()
def test_nasa_file_search():
"""Minimalist test for searching NASA files
I should expand this into several tests.
"""
file_list = oceandata_file_search('aqua',
'L3m',
np.datetime64('2019-06-01'),
np.datetime64('2019-06-01'),
['*DAY_CHL_chlor_a_4km*'])
ans = 'A2019152.L3m_DAY_CHL_chlor_a_4km.nc'
assert ans in [f['filename'] for f in file_list]
file_list = oceandata_file_search(
"aqua",
"L3m",
np.datetime64("2019-06-01"),
np.datetime64("2019-06-01"),
["*DAY.CHL.chlor_a.4km*"],
)
ans = "AQUA_MODIS.20190601.L3m.DAY.CHL.chlor_a.4km.nc"
assert ans in [f["filename"] for f in file_list]

0 comments on commit be7d658

Please sign in to comment.