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

Function test_union_datetime

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected