Skip to content

Commit 5566a97

Browse files
committed
Fix tests
1 parent 04379e0 commit 5566a97

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

tests/test_inbound_gateway.py

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

8181
assert len(list_tools_result.tools) == 2
82-
assert list_tools_result.tools[0].name == "modified-service-name/modified-op-name"
83-
assert list_tools_result.tools[1].name == "modified-service-name/op2"
82+
assert list_tools_result.tools[0].name == "modified-service-name_modified-op-name"
83+
assert list_tools_result.tools[1].name == "modified-service-name_op2"
8484

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

tests/test_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
2-
32
from nexusrpc.handler import StartOperationContext
3+
44
from .service import MyInput, TestServiceHandler, mcp_service
55

66

@@ -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()

tests/test_workflow_caller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ async def run(self, input: MCPCallerWorkflowInput) -> None:
3333

3434
list_tools_result = await session.list_tools()
3535
assert len(list_tools_result.tools) == 2
36-
assert list_tools_result.tools[0].name == "modified-service-name/modified-op-name"
37-
assert list_tools_result.tools[1].name == "modified-service-name/op2"
36+
assert list_tools_result.tools[0].name == "modified-service-name_modified-op-name"
37+
assert list_tools_result.tools[1].name == "modified-service-name_op2"
3838

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

4242

0 commit comments

Comments
 (0)