From a9905cc0a3ceebd567df1652a26cb2f503396270 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Sun, 9 Jun 2024 07:09:57 -0400 Subject: [PATCH] update tests --- lcviz/tests/test_plugin_markers.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lcviz/tests/test_plugin_markers.py b/lcviz/tests/test_plugin_markers.py index c6af363..85350cf 100644 --- a/lcviz/tests/test_plugin_markers.py +++ b/lcviz/tests/test_plugin_markers.py @@ -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'})