Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST: Collapse the NIDS tests together (backport) #2568

Merged
merged 1 commit into from
Jul 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions tests/io/test_nexrad.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_build19_level2_additions():
# NIDS/Level 3 Tests
#
nexrad_nids_files = [get_test_data(fname, as_file_obj=False)
for fname in POOCH.registry if fname.startswith('nids/K')]
for fname in POOCH.registry if fname.startswith('nids/')]


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


tdwr_nids_files = [get_test_data(fname, as_file_obj=False)
for fname in POOCH.registry if (fname.startswith('nids/Level3_MCI_')
or fname.startswith('nids/Level3_DEN_'))]


@pytest.mark.parametrize('fname', tdwr_nids_files)
def test_tdwr_nids(fname):
"""Test opening a TDWR NIDS file."""
Level3File(fname)


def test_basic():
"""Test reading one specific NEXRAD NIDS file based on the filename."""
f = Level3File(get_test_data('nids/Level3_FFC_N0Q_20140407_1805.nids', as_file_obj=False))
Expand Down Expand Up @@ -215,11 +204,6 @@ def test_dhr():
assert f.metadata['avg_time'] == datetime(2013, 5, 20, 20, 18)


def test_nwstg():
"""Test reading a nids file pulled from the NWSTG."""
Level3File(get_test_data('nids/sn.last', as_file_obj=False))


def test_fobj():
"""Test reading a specific NEXRAD NIDS files from a file object."""
Level3File(get_test_data('nids/Level3_FFC_N0Q_20140407_1805.nids'))
Expand Down