Botched: Need to do a higher reaosning model to fix this mess.
This commit is contained in:
@@ -9,7 +9,7 @@ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "s
|
||||
|
||||
def test_gui_updates_on_event(app_instance: App) -> None:
|
||||
app_instance.last_md = "mock_md"
|
||||
with patch.object(app_instance, '_refresh_api_metrics') as mock_refresh:
|
||||
with patch.object(app_instance.controller, '_refresh_api_metrics') as mock_refresh:
|
||||
# Simulate event (bypassing events.emit since _init_ai_and_hooks is mocked)
|
||||
app_instance._on_api_event(payload={"text": "test"})
|
||||
# Process tasks manually
|
||||
|
||||
Reference in New Issue
Block a user