Test conversion of Pydantic-like models to dicts.
(self)
| 397 | assert model_to_dict(test_dict) is test_dict |
| 398 | |
| 399 | def test_pydantic_models(self): |
| 400 | """Test conversion of Pydantic-like models to dicts.""" |
| 401 | # V1 model with dict() |
| 402 | v1_model = PydanticV1Model(name="test", value=42) |
| 403 | assert model_to_dict(v1_model) == {"name": "test", "value": 42} |
| 404 | |
| 405 | # V2 model with model_dump() |
| 406 | v2_model = PydanticV2Model(name="test", value=42) |
| 407 | assert model_to_dict(v2_model) == {"name": "test", "value": 42} |
| 408 | |
| 409 | @pytest.mark.skip(reason="parse() method handling is currently commented out in the implementation") |
| 410 | def test_parse_method(self): |
nothing calls this directly
no test coverage detected