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

Function test_optional_iso8601_format

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

Source from the content-addressed store, hash-verified

209@parametrize
210@pytest.mark.asyncio
211async def test_optional_iso8601_format(use_async: bool) -> None:
212 dt = datetime.fromisoformat("2023-02-23T14:16:36.337692+00:00")
213 assert await transform({"bar": dt}, DatetimeDict, use_async) == {"bar": "2023-02-23T14:16:36.337692+00:00"} # type: ignore[comparison-overlap]
214
215 assert await transform({"bar": None}, DatetimeDict, use_async) == {"bar": None}
216
217
218@parametrize

Callers

nothing calls this directly

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected