mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
[chore] remove all remaining type:ignore suppressions from tests/
Converts 115 `# type: ignore[...]` suppressions across 23 test files to no-suppression patterns (helper-return widening to Any, local Any aliases, cc:Any aliases, cast at narrow call sites, typed fixtures) so the hard no-type:ignore convention holds across tests/. No test logic or assertions changed — only mock-wiring mechanics and type annotations. Gate: ruff check tests/ clean; mypy tests/ (538 files) clean; 176 changed-file tests pass. Zero real suppressions remain (the 7 grep hits are 3 hygiene- checker string-literal test inputs and 4 prose mentions in comments).
This commit is contained in:
@@ -13,6 +13,7 @@ safety properties the Grok provider must hold:
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
import pytest
|
||||
@@ -303,7 +304,8 @@ async def test_claude_spawn_delegates_to_host() -> None:
|
||||
|
||||
async def test_claude_spawn_wraps_host_error() -> None:
|
||||
host = _FakeHost()
|
||||
host._spawn_container = AsyncMock(side_effect=RuntimeError("docker down")) # type: ignore[method-assign]
|
||||
cc: Any = host
|
||||
cc._spawn_container = AsyncMock(side_effect=RuntimeError("docker down"))
|
||||
provider = ClaudeCodeProvider(host)
|
||||
with pytest.raises(ProviderError, match="docker down"):
|
||||
await provider.spawn(_config())
|
||||
|
||||
Reference in New Issue
Block a user