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

Function test_union_datetime

tests/test_transform.py:231–237  ·  view source on GitHub ↗
(use_async: bool)

Source from the content-addressed store, hash-verified

229@parametrize
230@pytest.mark.asyncio
231async def test_union_datetime(use_async: bool) -> None:
232 dt = datetime.fromisoformat("2023-02-23T14:16:36.337692+00:00")
233 assert await transform({"union": dt}, DatetimeDict, use_async) == { # type: ignore[comparison-overlap]
234 "union": "2023-02-23T14:16:36.337692+00:00"
235 }
236
237 assert await transform({"union": "foo"}, DatetimeDict, use_async) == {"union": "foo"}
238
239
240@parametrize

Callers

nothing calls this directly

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected