fix(tests): annotate on_network param — pyright strict (CI lint)
The cut-over's edit to test_consolidated_launch left the new on_network kwarg untyped; pyright strict rejects it. No behavior change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBMWTEtQdJ4W5UrWuLHCck
This commit is contained in:
@@ -39,7 +39,10 @@ def _client(*, bottles: list[dict[str, object]] | None = None) -> Mock:
|
|||||||
|
|
||||||
|
|
||||||
class TestLaunchConsolidated(unittest.TestCase):
|
class TestLaunchConsolidated(unittest.TestCase):
|
||||||
def _run(self, client: Mock, provision: Mock | None = None, *, on_network=("172.18.0.2",)):
|
def _run(
|
||||||
|
self, client: Mock, provision: Mock | None = None,
|
||||||
|
*, on_network: tuple[str, ...] = ("172.18.0.2",),
|
||||||
|
):
|
||||||
service = MagicMock()
|
service = MagicMock()
|
||||||
service.ensure_running.return_value = "http://orch:8080"
|
service.ensure_running.return_value = "http://orch:8080"
|
||||||
with patch(f"{_MOD}._network_cidr", return_value="172.18.0.0/16"), \
|
with patch(f"{_MOD}._network_cidr", return_value="172.18.0.0/16"), \
|
||||||
|
|||||||
Reference in New Issue
Block a user