From 02fca1f8bab405c50bc0ff0e754aabefa7f2a47f Mon Sep 17 00:00:00 2001 From: Ed_ Date: Fri, 13 Mar 2026 12:05:49 -0400 Subject: [PATCH] test(gui): Verify borderless window mode is configured --- tests/test_gui_custom_window.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/test_gui_custom_window.py diff --git a/tests/test_gui_custom_window.py b/tests/test_gui_custom_window.py new file mode 100644 index 0000000..d966e72 --- /dev/null +++ b/tests/test_gui_custom_window.py @@ -0,0 +1,15 @@ +import pytest +from unittest.mock import patch +from src.gui_2 import App + +@patch("src.gui_2.immapp.run") +@patch("src.gui_2.session_logger.close_session") +@patch("src.gui_2.imgui.save_ini_settings_to_disk") +@patch("sys.argv", ["gui_2.py"]) +def test_app_window_is_borderless(mock_save_ini, mock_close, mock_run): + app = App() + app.run() + + assert app.runner_params is not None + # This assertion will fail initially because we haven't implemented it yet + assert getattr(app.runner_params.app_window_params, 'borderless', False) is True, "Window should be borderless"