Stub for ToolManager — only needs read_resource for launch tests.
| 16 | |
| 17 | |
| 18 | class FakeToolManager: |
| 19 | """Stub for ToolManager — only needs read_resource for launch tests.""" |
| 20 | |
| 21 | def __init__(self): |
| 22 | self._resource: dict[str, Any] = { |
| 23 | "contents": [ |
| 24 | { |
| 25 | "uri": "ui://test/app.html", |
| 26 | "text": "<html><body>Hello</body></html>", |
| 27 | } |
| 28 | ] |
| 29 | } |
| 30 | |
| 31 | async def read_resource(self, uri, server_name=None): |
| 32 | return self._resource |
| 33 | |
| 34 | |
| 35 | # ── Init Tests ───────────────────────────────────────────────────────────── |
no outgoing calls