From a12b687f26440ac718cc50d460bc0949c78bdb9e Mon Sep 17 00:00:00 2001 From: Jesse Averbukh Date: Fri, 13 Dec 2024 10:15:40 -0500 Subject: [PATCH] add test to run with CI --- .../cubeviz/plugins/sonify_data/tests/test_sonify_data.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jdaviz/configs/cubeviz/plugins/sonify_data/tests/test_sonify_data.py b/jdaviz/configs/cubeviz/plugins/sonify_data/tests/test_sonify_data.py index 94a1ae01dd..dcd8de50d0 100644 --- a/jdaviz/configs/cubeviz/plugins/sonify_data/tests/test_sonify_data.py +++ b/jdaviz/configs/cubeviz/plugins/sonify_data/tests/test_sonify_data.py @@ -37,6 +37,8 @@ def test_sonify_data(cubeviz_helper, spectrum1d_cube_larger): assert sonify_plg.flux_viewer.stream_active -def test_sonify_data_does_not_break_other_things(cubeviz_helper, spectrum1d_cube_larger): - cubeviz_helper.load_data(spectrum1d_cube_larger, data_label="test") - assert len(cubeviz_helper.app.data_collection) > 0 +def test_sonify_data_disabled(cubeviz_helper, spectrum1d_cube_larger): + if IN_GITHUB_ACTIONS: + cubeviz_helper.load_data(spectrum1d_cube_larger, data_label="test") + sonify_plg = cubeviz_helper.app.get_tray_item_from_name('cubeviz-sonify-data') + assert sonify_plg.disabled_msg