Skip to content

Commit

Permalink
specviz2d/mosviz: matched mouseover markers (spacetelescope#2575)
Browse files Browse the repository at this point in the history
* specviz2d/mosviz matched mouseover markers
* update tests to include wave in mouseover info
* update tests for extra mouseover mark
  • Loading branch information
kecnry authored and rosteen committed Nov 29, 2023
1 parent 2ceec46 commit 6f1fdce
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def test_plugin(specviz2d_helper):

# test trace marks - won't be created until after opening the plugin
sp2dv = specviz2d_helper.app.get_viewer('spectrum-2d-viewer')
assert len(sp2dv.figure.marks) == 2
assert len(sp2dv.figure.marks) == 3

pext.keep_active = True
assert len(sp2dv.figure.marks) == 11
assert len(sp2dv.figure.marks) == 12
assert pext.marks['trace'].visible is True
assert len(pext.marks['trace'].x) > 0

Expand Down Expand Up @@ -66,7 +66,7 @@ def test_plugin(specviz2d_helper):
# TODO: Investigate extra hidden mark from glue-jupyter, see
# https://github.com/spacetelescope/jdaviz/pull/2478#issuecomment-1731864411
# 3 new trace objects should have been loaded and plotted in the spectrum-2d-viewer
assert len(sp2dv.figure.marks) == 15
assert len(sp2dv.figure.marks) == 16

# interact with background section, check marks
pext.trace_trace_selected = 'New Trace'
Expand Down

0 comments on commit 6f1fdce

Please sign in to comment.