From f973a748cef3c52902b6f4d9b0ac3701ae1d0119 Mon Sep 17 00:00:00 2001 From: Jon Holba Date: Thu, 19 Dec 2024 08:34:58 +0100 Subject: [PATCH] wip: macos fix --- tests/ert/unit_tests/gui/run_analysis/test_analysispanel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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