Skip to content

Commit 5e8d80f

Browse files
committed
Fix tests
1 parent c6ee78a commit 5e8d80f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/test_inbound_gateway.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ async def call_tool(
7878
print(f"Available tools: {[tool.name for tool in list_tools_result.tools]}")
7979

8080
assert len(list_tools_result.tools) == 2
81-
assert list_tools_result.tools[0].name == "modified-service-name.modified-op-name"
82-
assert list_tools_result.tools[1].name == "modified-service-name.op2"
81+
assert list_tools_result.tools[0].name == "modified-service-name/modified-op-name"
82+
assert list_tools_result.tools[1].name == "modified-service-name/op2"
8383

84-
call_result = await session.call_tool("modified-service-name.modified-op-name", {"name": "World"})
84+
call_result = await session.call_tool("modified-service-name/modified-op-name", {"name": "World"})
8585
assert call_result.structuredContent == {"message": "Hello, World"}

tests/test_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ async def test_list_tools() -> None:
2727
None,
2828
)
2929
assert len(tools) == 2
30-
assert tools[0].name == "modified-service-name.modified-op-name"
31-
assert tools[1].name == "modified-service-name.op2"
30+
assert tools[0].name == "modified-service-name/modified-op-name"
31+
assert tools[1].name == "modified-service-name/op2"
3232
assert tools[0].description == "This is a test operation."
3333
assert tools[1].description == "This is also a test operation."
3434
assert tools[0].inputSchema == MyInput.model_json_schema()

0 commit comments

Comments
 (0)