wip dummy test

This commit is contained in:
2025-10-08 17:01:41 +02:00
committed by Klaus Wakonig
co-authored by Klaus Wakonig
parent f2df07e307
commit 227d6b3e45
+23
View File
@@ -0,0 +1,23 @@
import pytest
from PySide6.QtWidgets import QTreeView, QWidget
from bec_widgets.utils.colors import apply_theme
class DummyTree(QWidget):
def __init__(self):
super().__init__()
tree = QTreeView(self)
apply_theme("dark")
@pytest.fixture
def tree_widget(qtbot):
tree = DummyTree()
qtbot.addWidget(tree)
qtbot.waitExposed(tree)
yield tree
def test_tree_widget_init(tree_widget):
assert isinstance(tree_widget, QWidget)