Skip to content

Commit 096390d

Browse files
committed
fix test
1 parent a95edaa commit 096390d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_mcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,9 +1491,9 @@ async def test_server_info(mcp_server: MCPServerStdio) -> None:
14911491
assert mcp_server.server_info.name == 'Pydantic AI MCP Server'
14921492

14931493

1494-
async def test_agent_run_stream_with_mcp_server_http(allow_model_requests: None):
1494+
async def test_agent_run_stream_with_mcp_server_http(allow_model_requests: None, model: Model):
14951495
server = MCPServerStreamableHTTP(url='https://mcp.deepwiki.com/mcp', timeout=30)
1496-
agent = Agent(model='openai:gpt-4o', toolsets=[server], instructions='Be concise.')
1496+
agent = Agent(model, toolsets=[server], instructions='Be concise.')
14971497

14981498
# This should not raise an error.
14991499
# See https://github.com/pydantic/pydantic-ai/issues/2818#issuecomment-3476480829

0 commit comments

Comments
 (0)