From 4a59add580b3e6b4163132f51965f077dc2829ec Mon Sep 17 00:00:00 2001 From: David Stansby Date: Mon, 11 Apr 2022 15:40:09 +0100 Subject: [PATCH] Add smoke test for curation widget (#102) * Add simple curation widget test * Rename detection test file * Fix import order * Convert comment to docstring in test Co-authored-by: Patrick Roddy Co-authored-by: Patrick Roddy --- cellfinder_napari/tests/test_curation.py | 11 +++++++++++ .../{test_cellfinder_napari.py => test_detection.py} | 0 2 files changed, 11 insertions(+) create mode 100644 cellfinder_napari/tests/test_curation.py rename cellfinder_napari/tests/{test_cellfinder_napari.py => test_detection.py} (100%) diff --git a/cellfinder_napari/tests/test_curation.py b/cellfinder_napari/tests/test_curation.py new file mode 100644 index 00000000..398289b3 --- /dev/null +++ b/cellfinder_napari/tests/test_curation.py @@ -0,0 +1,11 @@ +from cellfinder_napari import sample_data +from cellfinder_napari.curation import CurationWidget + + +def test_detect_function(make_napari_viewer): + """ + Smoke test that adding the curation widget to napari works + """ + viewer = make_napari_viewer() + widget = CurationWidget(viewer) + viewer.window.add_dock_widget(widget) diff --git a/cellfinder_napari/tests/test_cellfinder_napari.py b/cellfinder_napari/tests/test_detection.py similarity index 100% rename from cellfinder_napari/tests/test_cellfinder_napari.py rename to cellfinder_napari/tests/test_detection.py