diff --git a/tests/ert/unit_tests/gui/run_analysis/test_analysispanel.py b/tests/ert/unit_tests/gui/run_analysis/test_analysispanel.py index df8cae20785..aceb5d6773a 100644 --- a/tests/ert/unit_tests/gui/run_analysis/test_analysispanel.py +++ b/tests/ert/unit_tests/gui/run_analysis/test_analysispanel.py @@ -3,16 +3,18 @@ import pytest from PySide6.QtCore import Qt from PySide6.QtWidgets import QCheckBox, QDoubleSpinBox +from pytestqt.qtbot import QtBot from ert.config import ESSettings from ert.gui.ertwidgets.analysismodulevariablespanel import AnalysisModuleVariablesPanel @pytest.fixture -def panel_with_localization_on(qtbot): +def panel_with_localization_on(qtbot: QtBot): def func(settings, ensemble_size): widget = AnalysisModuleVariablesPanel(settings, ensemble_size) qtbot.addWidget(widget) + widget.show() check_box = widget.findChild(QCheckBox, name="localization") qtbot.mouseClick(check_box, Qt.MouseButton.LeftButton) return settings, widget