Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Mar 19, 2024
1 parent 6ce2597 commit 213294c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 213294c

Please sign in to comment.