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"
