Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maliagehan committed Mar 28, 2024
1 parent 1c9edd9 commit a72c963
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies = [
"plantcv",
"matplotlib",
"napari",
"PyQt5"
"PyQt6"
]
requires-python = ">=3.6"
authors = [
Expand Down
11 changes: 0 additions & 11 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import pytest
import matplotlib
import napari
from typing import Callable
import os


Expand All @@ -26,15 +24,6 @@ def __init__(self):
self.envi_sample_data = os.path.join(self.datadir, filename_hyper)


@pytest.fixture
def viewer_widget(make_napari_viewer: Callable[..., napari.Viewer]):
"""Test for PlantCV.Annotate"""
# Read in test data
viewer = make_napari_viewer()

return viewer


@pytest.fixture(scope="session")
def test_data():
"""Test data object for the main PlantCV package."""
Expand Down
4 changes: 2 additions & 2 deletions tests/test_napari_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
from plantcv.annotate import napari_classes


def test_napari_classes(qtbot, viewer_widget):
def test_napari_classes(make_napari_viewer, qtbot):
"""Test for PlantCV.Annotate"""
# Read in test data
viewer = viewer_widget
viewer = make_napari_viewer(show=False)
img = np.zeros((100, 100))
coor = [(25, 25), (50, 50)]
viewer.add_image(img)
Expand Down

0 comments on commit a72c963

Please sign in to comment.