Jeremiah Lowin Claude commited on
Commit
ea6ffc1
·
1 Parent(s): a7436dc

Apply pre-commit formatting changes

Browse files

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. tests/client/test_client.py +4 -2
tests/client/test_client.py CHANGED
@@ -271,7 +271,7 @@ async def test_client_server_type_conversion_integration():
271
  async def test_client_serialization_error():
272
  """Test client error when object cannot be serialized."""
273
  import pydantic_core
274
-
275
  server = FastMCP("TestServer")
276
 
277
  @server.prompt
@@ -286,7 +286,9 @@ async def test_client_serialization_error():
286
  client = Client(transport=FastMCPTransport(server))
287
 
288
  async with client:
289
- with pytest.raises(pydantic_core.PydanticSerializationError, match="Unable to serialize"):
 
 
290
  await client.get_prompt("any_prompt", {"data": UnserializableClass()})
291
 
292
 
 
271
  async def test_client_serialization_error():
272
  """Test client error when object cannot be serialized."""
273
  import pydantic_core
274
+
275
  server = FastMCP("TestServer")
276
 
277
  @server.prompt
 
286
  client = Client(transport=FastMCPTransport(server))
287
 
288
  async with client:
289
+ with pytest.raises(
290
+ pydantic_core.PydanticSerializationError, match="Unable to serialize"
291
+ ):
292
  await client.get_prompt("any_prompt", {"data": UnserializableClass()})
293
 
294