MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / test_required_iso8601_format

Function test_required_iso8601_format

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected