(self)
| 140 | |
| 141 | @pytest.mark.asyncio |
| 142 | async def test_ui_message(self): |
| 143 | bridge, _ = _make_bridge() |
| 144 | msg = json.dumps( |
| 145 | { |
| 146 | "jsonrpc": "2.0", |
| 147 | "id": 4, |
| 148 | "method": "ui/message", |
| 149 | "params": {"content": {"type": "text", "text": "hello"}}, |
| 150 | } |
| 151 | ) |
| 152 | |
| 153 | resp = await bridge.handle_message(msg) |
| 154 | parsed = json.loads(resp) |
| 155 | assert parsed["id"] == 4 |
| 156 | assert parsed["result"] == {} |
| 157 | |
| 158 | @pytest.mark.asyncio |
| 159 | async def test_model_context_update(self): |
nothing calls this directly
no test coverage detected