Test listing prompts with params parameter.
(app: MCPServer)
| 331 | |
| 332 | |
| 333 | async def test_list_prompts(app: MCPServer): |
| 334 | """Test listing prompts with params parameter.""" |
| 335 | async with Client(app) as client: |
| 336 | result = await client.list_prompts() |
| 337 | assert result == snapshot( |
| 338 | ListPromptsResult( |
| 339 | prompts=[ |
| 340 | Prompt( |
| 341 | name="greeting_prompt", |
| 342 | description="A greeting prompt.", |
| 343 | arguments=[PromptArgument(name="name", required=True)], |
| 344 | ) |
| 345 | ] |
| 346 | ) |
| 347 | ) |
| 348 | |
| 349 | |
| 350 | async def test_complete_with_prompt_reference(simple_server: Server): |
nothing calls this directly
no test coverage detected