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

Function test_required_iso8601_format

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

Source from the content-addressed store, hash-verified

218@parametrize
219@pytest.mark.asyncio
220async def test_required_iso8601_format(use_async: bool) -> None:
221 dt = datetime.fromisoformat("2023-02-23T14:16:36.337692+00:00")
222 assert await transform({"required": dt}, DatetimeDict, use_async) == {
223 "required": "2023-02-23T14:16:36.337692+00:00"
224 } # type: ignore[comparison-overlap]
225
226 assert await transform({"required": None}, DatetimeDict, use_async) == {"required": None}
227
228
229@parametrize

Callers

nothing calls this directly

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected