1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-08 01:37:52 +01:00

test: fix test

This commit is contained in:
2026-01-21 11:13:28 +01:00
committed by wyzula-jan
parent fa56fc8802
commit de835e81d8
2 changed files with 1 additions and 2 deletions

View File

@@ -31,7 +31,6 @@ class ValidationButton(QtWidgets.QPushButton):
self, parent: QtWidgets.QWidget | None = None, icon: QtGui.QIcon | None = None
) -> None:
super().__init__(parent=parent)
self.transparent_style = "background-color: transparent; border: none;"
if icon:
self.setIcon(icon)
self.setFlat(True)

View File

@@ -770,7 +770,7 @@ class TestOphydValidation:
assert isinstance(validation_button.icon(), QtGui.QIcon)
assert validation_button.styleSheet() == ""
validation_button.setEnabled(False)
assert validation_button.styleSheet() == validation_button.transparent_style
assert validation_button.styleSheet() == ""
@pytest.fixture
def validation_dialog(self, qtbot):