From 337a840ab19722dd7a183bb7f58cd7c53a4854b0 Mon Sep 17 00:00:00 2001 From: jrobrien91 Date: Thu, 12 Sep 2024 20:37:22 -0500 Subject: [PATCH] ENH: Removal of conflicting test --- tests/discovery/test_nasa.py | 51 +++++++++++------------------------- 1 file changed, 15 insertions(+), 36 deletions(-) diff --git a/tests/discovery/test_nasa.py b/tests/discovery/test_nasa.py index 790cd35a23..5a11a7d723 100644 --- a/tests/discovery/test_nasa.py +++ b/tests/discovery/test_nasa.py @@ -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] @@ -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" @@ -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" + )