From ccfb8cee908117d45b7d04c2ae4c51611243d72f Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Mon, 22 Apr 2024 13:39:30 -0400 Subject: [PATCH] make stitch test more robust (#114) by ensuring the data is loaded in a viewer before checking if the stitch plugin is active --- lcviz/tests/test_plugin_stitch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lcviz/tests/test_plugin_stitch.py b/lcviz/tests/test_plugin_stitch.py index cbdaf36..6beffef 100644 --- a/lcviz/tests/test_plugin_stitch.py +++ b/lcviz/tests/test_plugin_stitch.py @@ -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']