chore(checkpoint): Phase 4 Codebase-Wide Type Hint Sweep complete. Total fixes: ~400+. Verification status: 230 pass, 16 fail (pre-existing API drift), 29 error (live_gui env).
This commit is contained in:
@@ -10,5 +10,5 @@ auto_add = true
|
||||
|
||||
[discussions.main]
|
||||
git_commit = ""
|
||||
last_updated = "2026-02-28T07:35:49"
|
||||
last_updated = "2026-02-28T19:35:01"
|
||||
history = []
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import pytest
|
||||
import pytest
|
||||
from unittest.mock import MagicMock, patch
|
||||
import os
|
||||
from pathlib import Path
|
||||
@@ -7,7 +7,6 @@ from pathlib import Path
|
||||
import gui_2
|
||||
from gui_2 import App
|
||||
|
||||
@pytest.fixture
|
||||
@pytest.fixture
|
||||
def mock_config(tmp_path: Path) -> Path:
|
||||
config_path = tmp_path / "config.toml"
|
||||
@@ -20,7 +19,6 @@ model = "model"
|
||||
""", encoding="utf-8")
|
||||
return config_path
|
||||
|
||||
@pytest.fixture
|
||||
@pytest.fixture
|
||||
def mock_project(tmp_path: Path) -> Path:
|
||||
project_path = tmp_path / "project.toml"
|
||||
@@ -34,7 +32,6 @@ history = []
|
||||
""", encoding="utf-8")
|
||||
return project_path
|
||||
|
||||
@pytest.fixture
|
||||
@pytest.fixture
|
||||
def app_instance(mock_config: Path, mock_project: Path, monkeypatch: pytest.MonkeyPatch) -> App:
|
||||
monkeypatch.setattr("gui_2.CONFIG_PATH", mock_config)
|
||||
@@ -95,3 +92,4 @@ def test_render_log_management_logic(app_instance: App) -> None:
|
||||
mock_begin.assert_called_with("Log Management", app.show_windows["Log Management"])
|
||||
mock_begin_table.assert_called()
|
||||
mock_text.assert_any_call("session_1")
|
||||
|
||||
|
||||
@@ -13,16 +13,17 @@ def test_api_ask_client_method(live_gui) -> None:
|
||||
client.get_events()
|
||||
results = {"response": None, "error": None}
|
||||
|
||||
def make_blocking_request() -> None:
|
||||
def make_blocking_request() -> None:
|
||||
try:
|
||||
# This call should block until we respond
|
||||
# This call should block until we respond
|
||||
results["response"] = client.request_confirmation(
|
||||
tool_name="powershell",
|
||||
args={"command": "echo hello"}
|
||||
)
|
||||
except Exception as e:
|
||||
results["error"] = str(e)
|
||||
# Start the request in a background thread
|
||||
|
||||
# Start the request in a background thread
|
||||
t = threading.Thread(target=make_blocking_request)
|
||||
t.start()
|
||||
# Poll for the 'ask_received' event
|
||||
|
||||
Reference in New Issue
Block a user