Botched: Need to do a higher reaosning model to fix this mess.
This commit is contained in:
@@ -41,7 +41,11 @@ def test_old_windows_removed_from_gui2(app_instance_simple: Any) -> None:
|
||||
def app_instance_simple() -> Any:
|
||||
from unittest.mock import patch
|
||||
from gui_2 import App
|
||||
with patch('gui_2.load_config', return_value={}):
|
||||
with patch('src.models.load_config', return_value={'ai': {}, 'projects': {}, 'gui': {'show_windows': {}}}), \
|
||||
patch('src.app_controller.AppController._init_ai_and_hooks'), \
|
||||
patch('src.app_controller.AppController._fetch_models'), \
|
||||
patch('src.app_controller.AppController._prune_old_logs'), \
|
||||
patch('src.app_controller.AppController.start_services'):
|
||||
app = App()
|
||||
return app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user