feat(types): Complete strict static analysis and typing track
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
import pytest
|
||||
import sys
|
||||
import os
|
||||
from unittest.mock import patch
|
||||
from typing import Generator, Any
|
||||
from gui_2 import App
|
||||
import ai_client
|
||||
|
||||
# Ensure project root is in path
|
||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
||||
|
||||
def test_gui_updates_on_event(app_instance: App) -> None:
|
||||
mock_stats = {"percentage": 50.0, "current": 500, "limit": 1000}
|
||||
app_instance.last_md = "mock_md"
|
||||
with patch.object(app_instance, '_refresh_api_metrics') as mock_refresh:
|
||||
# Simulate event (bypassing events.emit since _init_ai_and_hooks is mocked)
|
||||
|
||||
Reference in New Issue
Block a user