MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / test_scalars

Function test_scalars

tests/test_prepare.py:304–307  ·  view source on GitHub ↗
(send: Send)

Source from the content-addressed store, hash-verified

302
303
304async def test_scalars(send: Send) -> None:
305 assert await send({"s": "str", "i": 1, "f": 1.5, "t": True}) == {"s": "str", "i": 1, "f": 1.5, "t": True}
306 assert await send("bare") == "bare"
307 assert await send(3) == 3
308
309
310async def test_scalar_subclasses_are_sent_as_their_value(send: Send) -> None:

Callers

nothing calls this directly

Calls 1

sendFunction · 0.85

Tested by

no test coverage detected