diff --git a/.github/workflows/test-gui.yml b/.github/workflows/test-gui.yml index fc4b312..3cc5067 100644 --- a/.github/workflows/test-gui.yml +++ b/.github/workflows/test-gui.yml @@ -27,7 +27,7 @@ jobs: sudo apt-get update sudo apt-get install -y xvfb python -m pip install --upgrade pip - pip install pyqt5 pytest setuptools + pip install pyqt5 pytest setuptools pytest-qt - name: Start Xvfb run: | @@ -36,4 +36,4 @@ jobs: - name: Run GUI test run: | - python tests/test_result_gui_viewer.py --durations=0 -v + xvfb-run pytest tests/test_result_gui_viewer.py --durations=0 -v diff --git a/tests/test_result_gui_viewer.py b/tests/test_result_gui_viewer.py index 950f0fd..4f70222 100644 --- a/tests/test_result_gui_viewer.py +++ b/tests/test_result_gui_viewer.py @@ -42,7 +42,7 @@ def test_result_gui_viewer(): # Print summary of simulation result W.analyzer.print_simple_stats() - ResultGUIViewer.launch_World_viewer(W, return_app_window=False) + app, window = ResultGUIViewer.launch_World_viewer(W, return_app_window=True) # Shut down 5 sec later from PyQt5.QtCore import QTimer