Skip to content

Commit

Permalink
ENH: Removal of conflicting test
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobrien91 committed Sep 13, 2024
1 parent 1284753 commit 337a840
Showing 1 changed file with 15 additions and 36 deletions.
51 changes: 15 additions & 36 deletions tests/discovery/test_nasa.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@


def test_get_mplnet_meta():
output = act.discovery.get_mplnet_meta(sites="GSFC",
method="data",
year="2024",
month="09",
day="12")
output = act.discovery.get_mplnet_meta(
sites="GSFC", method="data", year="2024", month="09", day="12"
)

assert 'id' in output[0]
assert 'station' in output[0]
Expand All @@ -20,13 +18,9 @@ def test_get_mplnet_meta():


def test_download_mplnet_data():
output = act.discovery.download_mplnet_data(version=3,
level=1,
product="NRB",
site="GSFC",
year="2020",
month="09",
day="01")
output = act.discovery.download_mplnet_data(
version=3, level=1, product="NRB", site="GSFC", year="2020", month="09", day="01"
)

assert len(output) == 1
assert output[0][-3:] == "nc4"
Expand All @@ -36,27 +30,12 @@ def test_download_mplnet_data():
with np.testing.assert_raises(ValueError):
output = act.discovery.download_mplnet_data(version=3)
with np.testing.assert_raises(ValueError):
output = act.discovery.download_mplnet_data(version=3,
level=1)
with np.testing.assert_raises(ValueError):
output = act.discovery.download_mplnet_data(version=3,
level=1,
product='NRB')
with np.testing.assert_raises(ValueError):
output = act.discovery.download_mplnet_data(version=3,
level=1,
product='NRB',
site="GSFC")
with np.testing.assert_raises(ValueError):
output = act.discovery.download_mplnet_data(version=3,
level=1,
product='NRB',
site="GSFC",
year="2020")
with np.testing.assert_raises(ValueError):
output = act.discovery.download_mplnet_data(version=3,
level=1,
product='NRB',
site="GSFC",
year="2020",
month="09")
output = act.discovery.download_mplnet_data(version=3, level=1)
with np.testing.assert_raises(ValueError):
output = act.discovery.download_mplnet_data(version=3, level=1, product='NRB')
with np.testing.assert_raises(ValueError):
output = act.discovery.download_mplnet_data(version=3, level=1, product='NRB', site="GSFC")
with np.testing.assert_raises(ValueError):
output = act.discovery.download_mplnet_data(
version=3, level=1, product='NRB', site="GSFC", year="2020"
)

0 comments on commit 337a840

Please sign in to comment.