(use_async: bool)
| 262 | @parametrize |
| 263 | @pytest.mark.asyncio |
| 264 | async def test_datetime_with_alias(use_async: bool) -> None: |
| 265 | assert await transform({"required_prop": None}, DateDictWithRequiredAlias, use_async) == {"prop": None} # type: ignore[comparison-overlap] |
| 266 | assert await transform( |
| 267 | {"required_prop": date.fromisoformat("2023-02-23")}, DateDictWithRequiredAlias, use_async |
| 268 | ) == {"prop": "2023-02-23"} # type: ignore[comparison-overlap] |
| 269 | |
| 270 | |
| 271 | class MyModel(BaseModel): |
nothing calls this directly
no test coverage detected