Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Jun 9, 2024
1 parent 49c447b commit b325d1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lcviz/tests/test_plugin_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,17 @@ 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',
'')

_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.27220,
'value:unit': 'electron / s'})

0 comments on commit b325d1f

Please sign in to comment.