Skip to content

Commit c12b1cf

Browse files
committed
test: add debug prints
1 parent 6f217ce commit c12b1cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testcases/ground-to-cloud/test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ async def call_add_tool():
3636
except Exception as e:
3737
print (f"Error when initializing session: {e}")
3838
raise e
39-
39+
print ("Successfully initialized session.")
4040
# List available tools
4141
try:
4242
tools_result = await session.list_tools()
4343
except Exception as e:
4444
print (f"Error when listing tools: {e}")
4545
raise e
46+
print ("Successfully listed tools.")
4647

4748
available_tools = [tool.name for tool in tools_result.tools]
4849
expected_available_tools = [
@@ -58,6 +59,7 @@ async def call_add_tool():
5859

5960
# Call the add tool directly
6061
call_tool_result = await session.call_tool(name="add", arguments={"a": 7, "b": 5})
62+
print ("Successfully called tool.")
6163

6264
expected_result = "12.0"
6365
actual_result = call_tool_result.content[0].text if call_tool_result.content else None

0 commit comments

Comments
 (0)