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