We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa27b69 commit 795bfb9Copy full SHA for 795bfb9
tests/views/qt/test_lut_view.py
@@ -1,12 +1,17 @@
1
from __future__ import annotations
2
3
+from typing import TYPE_CHECKING
4
+
5
import cmap
6
from pytest import fixture
7
8
from ndv.models._lut_model import ClimsManual, ClimsMinMax, LUTModel
9
from ndv.views._app import QtProvider
10
from ndv.views._qt._array_view import QLutView
11
12
+if TYPE_CHECKING:
13
+ from pytestqt.qtbot import QtBot
14
15
16
@fixture(autouse=True)
17
def init_provider() -> None:
@@ -20,8 +25,9 @@ def model() -> LUTModel:
20
25
21
26
22
27
@fixture
23
-def view(model: LUTModel) -> QLutView:
28
+def view(model: LUTModel, qtbot: QtBot) -> QLutView:
24
29
view = QLutView()
30
+ qtbot.add_widget(view.frontend_widget())
31
# Set the model
32
assert view.model is None
33
view.model = model
0 commit comments