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:
@@ -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)
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user