(monkeypatch: pytest.MonkeyPatch)
| 35 | |
| 36 | @pytest.fixture |
| 37 | def platform_setup(monkeypatch: pytest.MonkeyPatch) -> list[list[str]]: |
| 38 | calls: list[list[str]] = [] |
| 39 | |
| 40 | def setup(tools: list[str]) -> str | None: |
| 41 | calls.append(tools) |
| 42 | return "amp-token" if any(t.startswith("platform:") for t in tools) else None |
| 43 | |
| 44 | monkeypatch.setattr(agent_tools, "setup_platform_tools", setup) |
| 45 | return calls |
| 46 | |
| 47 | |
| 48 | @pytest.mark.parametrize("fmt", ["json", "yaml"]) |
nothing calls this directly
no outgoing calls
no test coverage detected