Skip to content

Commit

Permalink
add test coverage for creating additional time viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Mar 8, 2024
1 parent 62662a8 commit f699c82
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lcviz/tests/test_tray_viewer_creator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
def test_tray_viewer_creator(helper, light_curve_like_kepler_quarter):
# additional coverage in test_plugin_ephemeris
helper.load_data(light_curve_like_kepler_quarter)
vc = helper._tray_tools['lcviz-viewer-creator']

assert len(helper.viewers) == 1
assert len(vc.viewer_types) == 2 # time and default phase
vc.vue_create_viewer('flux-vs-time')
assert len(helper.viewers) == 2

0 comments on commit f699c82

Please sign in to comment.