Skip to content

Commit

Permalink
use blink tool in one of the existing linking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Jul 11, 2022
1 parent a7120ca commit f9783c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jdaviz/configs/imviz/tests/test_linking.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def test_wcslink_fallback_pixels(self):
assert self.viewer.label_mouseover.world_ra_deg == ''
assert self.viewer.label_mouseover.world_dec_deg == ''

# blink image through keypress
self.viewer.on_mouse_or_key_event({'event': 'keydown', 'key': 'b',
'domain': {'x': 0, 'y': 0}})
assert self.viewer.label_mouseover.pixel == 'x=00.0 y=00.0'
Expand Down Expand Up @@ -119,8 +120,9 @@ def test_wcslink_affine_with_extras(self):
assert self.viewer.label_mouseover.world_ra_deg == '337.5202808000'
assert self.viewer.label_mouseover.world_dec_deg == '-20.8333330600'

self.viewer.on_mouse_or_key_event({'event': 'keydown', 'key': 'b',
'domain': {'x': 0, 'y': 0}})
# blink image through clicking with blink tool
self.viewer.toolbar_nested.active_tool_id = 'jdaviz:blinkonce'
self.viewer.toolbar_nested.active_tool.on_click({'domain': {'x': 0, 'y': 0}})
assert self.viewer.label_mouseover.pixel == 'x=00.0 y=00.0'
assert self.viewer.label_mouseover.value == '+1.00000e+00 '
assert self.viewer.label_mouseover.world_ra_deg == '337.5202808000'
Expand Down

0 comments on commit f9783c5

Please sign in to comment.