From 213294c4e349fae53454ad70f1aab0306fd86808 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Tue, 19 Mar 2024 12:27:12 -0400 Subject: [PATCH] update tests --- .../default/plugins/plot_options/tests/test_plot_options.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jdaviz/configs/default/plugins/plot_options/tests/test_plot_options.py b/jdaviz/configs/default/plugins/plot_options/tests/test_plot_options.py index f6ed010c12..9ded8b3a33 100644 --- a/jdaviz/configs/default/plugins/plot_options/tests/test_plot_options.py +++ b/jdaviz/configs/default/plugins/plot_options/tests/test_plot_options.py @@ -144,7 +144,7 @@ def test_user_api(cubeviz_helper, spectrum1d_cube): po = cubeviz_helper.plugins['Plot Options'] assert po.multiselect is False - assert "multiselect" in po.viewer.__repr__() + assert "multiselect" in po.viewer._obj.__repr__() # regression test for https://github.com/spacetelescope/jdaviz/pull/1708 # user calls to select_default should revert even if current entry is valid @@ -177,9 +177,9 @@ def test_user_api(cubeviz_helper, spectrum1d_cube): # check a plot option with and without choices assert hasattr(po.stretch_preset, 'choices') assert len(po.stretch_preset.choices) > 1 - assert "choices" in po.stretch_preset.__repr__() + assert "choices" in po.stretch_preset._obj.__repr__() assert not hasattr(po.image_contrast, 'choices') - assert "choices" not in po.image_contrast.__repr__() + assert "choices" not in po.image_contrast._obj.__repr__() # try setting with both label and value po.stretch_preset = 90