(mock_llm)
| 215 | |
| 216 | @pytest.mark.anyio |
| 217 | async def test_executor_get_server_descriptions(mock_llm): |
| 218 | executor = Executor(mock_llm(), server_paths={"TestServer": None}) |
| 219 | |
| 220 | with patch( |
| 221 | "agent.plan_execute.executor._list_tools", |
| 222 | new=AsyncMock( |
| 223 | return_value=[{"name": "foo", "description": "does foo", "parameters": []}] |
| 224 | ), |
| 225 | ): |
| 226 | descs = await executor.get_server_descriptions() |
| 227 | |
| 228 | assert "TestServer" in descs |
| 229 | assert "foo" in descs["TestServer"] |
| 230 | |
| 231 | |
| 232 | @pytest.mark.anyio |
nothing calls this directly
no test coverage detected