Skip to content

Commit 5133ee9

Browse files
committed
TEST: Collapse the NIDS tests together
This fixes missing the file Level3_FTG_N0B_20220304_1820.nids in any of the tests. None of the tests were functionally different, so just run all of the NIDS files through the main level3 test.
1 parent 2471128 commit 5133ee9

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

tests/io/test_nexrad.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def test_build19_level2_additions():
125125
# NIDS/Level 3 Tests
126126
#
127127
nexrad_nids_files = [get_test_data(fname, as_file_obj=False)
128-
for fname in POOCH.registry if fname.startswith('nids/K')]
128+
for fname in POOCH.registry if fname.startswith('nids/')]
129129

130130

131131
@pytest.mark.parametrize('fname', nexrad_nids_files)
@@ -149,17 +149,6 @@ def test_level3_files(fname):
149149
assert f.filename == fname
150150

151151

152-
tdwr_nids_files = [get_test_data(fname, as_file_obj=False)
153-
for fname in POOCH.registry if (fname.startswith('nids/Level3_MCI_')
154-
or fname.startswith('nids/Level3_DEN_'))]
155-
156-
157-
@pytest.mark.parametrize('fname', tdwr_nids_files)
158-
def test_tdwr_nids(fname):
159-
"""Test opening a TDWR NIDS file."""
160-
Level3File(fname)
161-
162-
163152
def test_basic():
164153
"""Test reading one specific NEXRAD NIDS file based on the filename."""
165154
f = Level3File(get_test_data('nids/Level3_FFC_N0Q_20140407_1805.nids', as_file_obj=False))
@@ -215,11 +204,6 @@ def test_dhr():
215204
assert f.metadata['avg_time'] == datetime(2013, 5, 20, 20, 18)
216205

217206

218-
def test_nwstg():
219-
"""Test reading a nids file pulled from the NWSTG."""
220-
Level3File(get_test_data('nids/sn.last', as_file_obj=False))
221-
222-
223207
def test_fobj():
224208
"""Test reading a specific NEXRAD NIDS files from a file object."""
225209
Level3File(get_test_data('nids/Level3_FFC_N0Q_20140407_1805.nids'))

0 commit comments

Comments
 (0)