1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-06 17:02:50 +01:00

wip dummy test

This commit is contained in:
2025-09-22 08:39:29 -05:00
committed by Klaus Wakonig
parent f2df07e307
commit 227d6b3e45

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)