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" + )