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