(use_async: bool)
| 275 | @parametrize |
| 276 | @pytest.mark.asyncio |
| 277 | async def test_pydantic_model_to_dictionary(use_async: bool) -> None: |
| 278 | assert cast(Any, await transform(MyModel(foo="hi!"), Any, use_async)) == {"foo": "hi!"} |
| 279 | assert cast(Any, await transform(MyModel.construct(foo="hi!"), Any, use_async)) == {"foo": "hi!"} |
| 280 | |
| 281 | |
| 282 | @parametrize |