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

Function test_optional_iso8601_format

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected