diff --git a/specreduce/tests/test_linelists.py b/specreduce/tests/test_linelists.py index d3e5784..247868c 100644 --- a/specreduce/tests/test_linelists.py +++ b/specreduce/tests/test_linelists.py @@ -49,7 +49,7 @@ def test_pypeit_nonexisting_lamp(): Test to make sure a warning is raised if the lamp list includes a bad lamp name. """ with pytest.warns(UserWarning, match='NeJ not in the list'): - line_tab = load_pypeit_calibration_lines(["HeI", "NeJ"], cache=True, show_progress=False) # noqa + load_pypeit_calibration_lines(["HeI", "NeJ"], cache=True, show_progress=False) @pytest.mark.remote_data diff --git a/specreduce/tests/test_specphot_stds.py b/specreduce/tests/test_specphot_stds.py index b8e34fb..e67f1c8 100644 --- a/specreduce/tests/test_specphot_stds.py +++ b/specreduce/tests/test_specphot_stds.py @@ -14,7 +14,8 @@ def test_load_MAST(): @pytest.mark.remote_data def test_load_MAST_bad_filename(): with pytest.warns(AstropyUserWarning, match="Downloading of"): - sp = load_MAST_calspec("j191b2b_005.fits", show_progress=False) # noqa + sp = load_MAST_calspec("j191b2b_005.fits", show_progress=False) + assert sp is None @pytest.mark.remote_data