Skip to content

Commit

Permalink
TST: Update remote data result for DQ plugin (#3161)
Browse files Browse the repository at this point in the history
* TST: The risk of using live data that changes
with pipeline changes

* Update jdaviz/configs/default/plugins/data_quality/tests/test_data_quality.py

Co-authored-by: Brett M. Morris <morrisbrettm@gmail.com>

---------

Co-authored-by: Brett M. Morris <morrisbrettm@gmail.com>
  • Loading branch information
pllim and bmorris3 authored Aug 21, 2024
1 parent 3ee85ce commit 43f2bb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def test_data_quality_plugin(imviz_helper, tmp_path):
label_mouseover._viewer_mouse_event(viewer,
{'event': 'mousemove', 'domain': {'x': 1371, 'y': 715}})
label_mouseover_text = label_mouseover.as_text()[0]
assert label_mouseover_text.split('+')[1] == '2.94744e-01 MJy/sr (DQ: 4)'
assert label_mouseover_text.split('+')[1].endswith('(DQ: 4)')

# check that a pixel without a DQ flag has no DQ mouseover label:
label_mouseover._viewer_mouse_event(viewer,
Expand Down

0 comments on commit 43f2bb0

Please sign in to comment.