Skip to content

Commit 6956854

Browse files
committed
Add assertion message to context propagation test
1 parent dee1291 commit 6956854

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/client/test_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,4 +350,6 @@ async def check_context() -> str:
350350
with _set_test_contextvar("client_value"):
351351
result = await client.call_tool("check_context", {})
352352

353-
assert result.content[0].text == "client_value" # type: ignore[union-attr]
353+
assert result.content[0].text == "client_value", ( # type: ignore[union-attr]
354+
"Server handler did not see the sender's contextvars.Context"
355+
)

0 commit comments

Comments
 (0)