From dccca7e93b9c36df3c9500daa4e46dc84cbf4d13 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Fri, 15 Nov 2024 14:33:05 -0500 Subject: [PATCH] update tests --- jdaviz/core/tests/test_config_detection.py | 5 +---- jdaviz/tests/test_user_api.py | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/jdaviz/core/tests/test_config_detection.py b/jdaviz/core/tests/test_config_detection.py index 89194c1de2..fbe0d57814 100644 --- a/jdaviz/core/tests/test_config_detection.py +++ b/jdaviz/core/tests/test_config_detection.py @@ -1,9 +1,5 @@ import pytest -import numpy as np - from astropy.utils.data import download_file -from specutils import SpectralRegion - from jdaviz.core.data_formats import identify_helper # URIs to example JWST/HST files on MAST, and their @@ -26,6 +22,7 @@ 'specviz'] ] + @pytest.mark.skip(reason="filenames changed") @pytest.mark.remote_data @pytest.mark.filterwarnings(r"ignore::astropy.wcs.wcs.FITSFixedWarning") diff --git a/jdaviz/tests/test_user_api.py b/jdaviz/tests/test_user_api.py index b6bf8c70b5..ff44986307 100644 --- a/jdaviz/tests/test_user_api.py +++ b/jdaviz/tests/test_user_api.py @@ -35,5 +35,5 @@ def test_specviz_data_labels(specviz_helper, spectrum1d): specviz_helper.load_data(spectrum1d, data_label=label) assert specviz_helper.data_labels == [label] - assert specviz_helper.viewers['spectrum-viewer'].data_labels_loaded == [label] - assert specviz_helper.viewers['spectrum-viewer'].data_labels_visible == [label] + assert specviz_helper.viewers['spectrum-viewer'].data_menu.data_labels_loaded == [label] + assert specviz_helper.viewers['spectrum-viewer'].data_menu.data_labels_visible == [label]