Skip to content

Commit

Permalink
Use qtpy
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy committed Aug 7, 2023
1 parent 46dff6e commit 86482ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import numpy as np
import numpy.typing as npt
import pytest

from magicgui.widgets import Container
from qtpy import QtWidgets

import btrack

Expand Down Expand Up @@ -91,7 +90,7 @@ def default_rng():


@pytest.fixture
def track_widget(make_napari_viewer) -> Container:
def track_widget(make_napari_viewer) -> QtWidgets.QWidget:
"""Provides an instance of the track widget to test"""
make_napari_viewer() # make sure there is a viewer available
return btrack.napari.main.create_btrack_widget()
Expand All @@ -102,7 +101,6 @@ def simplistic_tracker_outputs() -> (
tuple[npt.NDArray, dict[str, npt.NDArray], dict[int, list]]
):
"""Provides simplistic return values of a btrack run.
They have the correct types and dimensions, but contain zeros.
Useful for mocking the tracker.
"""
Expand Down

0 comments on commit 86482ed

Please sign in to comment.