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

Function body

tests/test_prepare.py:346–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

344@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
345async def test_serialize_data(sync: bool) -> None:
346 def body() -> object:
347 return {
348 "nested": MappingProxyType({"keep": (1, 2), "drop": omit}),
349 "when": datetime(2024, 1, 2, 3, 4, 5, tzinfo=timezone.utc),
350 }
351
352 if sync:
353 serialized = serialize_data(body(), location="body")

Callers 1

test_serialize_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected