Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Jun 11, 2024
1 parent 49c447b commit a9905cc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lcviz/tests/test_plugin_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,18 @@ def test_tpf_markers(helper, light_curve_like_kepler_quarter):
{'event': 'mousemove',
'domain': {'x': 0, 'y': 0}})

assert label_mouseover.as_text() == ('Pixel x=00000.0 y=00000.0 Value +1.28035e+01 electron / s', # noqa
'Time 47.00689 d',
assert label_mouseover.as_text() == ('Pixel x=00000.0 y=00000.0 Value +1.27220e+00 electron / s', # noqa
'Time 47.00000 d',
'')

print(label_mouseover.as_dict())
_assert_dict_allclose(label_mouseover.as_dict(), {'data_label': 'KIC 1429092[TPF]',
'time': 47.00688790508866,
'time': 47.00000,
'time:unit': 'd',
'pixel': (0.0, 0.0),
'axes_x': 0,
'axes_x:unit': 'pix',
'axes_y': 0,
'axes_y:unit': 'pix',
'value': 12.803528785705566,
'value': 1.272199273109436,
'value:unit': 'electron / s'})

0 comments on commit a9905cc

Please sign in to comment.