Skip to content

Commit

Permalink
make stitch test more robust (#114)
Browse files Browse the repository at this point in the history
by ensuring the data is loaded in a viewer before checking if the stitch plugin is active
  • Loading branch information
kecnry authored Apr 22, 2024
1 parent 8196447 commit ccfb8ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lcviz/tests/test_plugin_stitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ def test_docs_snippets(helper, light_curve_like_kepler_quarter):


def test_plugin_stitch(helper, light_curve_like_kepler_quarter):
helper.load_data(light_curve_like_kepler_quarter)
helper.load_data(light_curve_like_kepler_quarter, 'lc1')

assert "Stitch" not in helper.plugins.keys()

helper.load_data(light_curve_like_kepler_quarter.copy())
helper.load_data(light_curve_like_kepler_quarter.copy(), 'lc2')
helper.app.add_data_to_viewer('flux-vs-time', 'lc2')
assert "Stitch" in helper.plugins.keys()

stitch = helper.plugins['Stitch']
Expand Down

0 comments on commit ccfb8ce

Please sign in to comment.