test(runtime): fix pytest TypeError in test_mount_free_success_path

This commit is contained in:
Manideep Malyala 2026-08-24 00:48:48 +05:30
parent c3a7c3bb69
commit be004af52e

View file

@ -15,7 +15,8 @@ from strix.runtime.backends import (
from strix.runtime.session_manager import _symlink_safe_dir_entry, create_or_reuse
async def _dummy_backend(*_args: Any, **_kwargs: Any) -> tuple[Any, Any]:
async def _dummy_backend(*args: Any, **kwargs: Any) -> tuple[Any, Any]:
# ruff: noqa: ARG001
return None, None
@ -49,11 +50,12 @@ async def test_mount_free_success_path(monkeypatch: pytest.MonkeyPatch, tmp_path
captured: dict[str, Any] = {}
async def _stub_backend(
image: str, manifest: Any, _exposed_ports: Any, bind_mounts: Any
image: str, manifest: Any, exposed_ports: Any, bind_mounts: Any
) -> tuple[Any, Any]:
captured["image"] = image
captured["manifest"] = manifest
captured["bind_mounts"] = bind_mounts
# ruff: noqa: ARG001
class FakeEndpoint:
host = "127.0.0.1"
@ -61,12 +63,14 @@ async def test_mount_free_success_path(monkeypatch: pytest.MonkeyPatch, tmp_path
tls = False
class FakeSession:
async def resolve_exposed_port(self, _port: int) -> FakeEndpoint:
async def resolve_exposed_port(self, port: int) -> FakeEndpoint:
# ruff: noqa: ARG002
return FakeEndpoint()
return None, FakeSession()
async def _fake_bootstrap_caido(*_args: Any, **_kwargs: Any) -> Any:
async def _fake_bootstrap_caido(*args: Any, **kwargs: Any) -> Any:
# ruff: noqa: ARG001
return None
try: