()
| 688 | |
| 689 | |
| 690 | def test_parse_obj(): |
| 691 | with pytest.warns( |
| 692 | PydanticDeprecatedSince20, match='^The `parse_obj` method is deprecated; use `model_validate` instead.' |
| 693 | ): |
| 694 | m = SimpleModel.parse_obj({'x': 1}) |
| 695 | |
| 696 | assert m.model_dump() == {'x': 1} |
| 697 | |
| 698 | |
| 699 | def test_parse_file(tmp_path): |
nothing calls this directly
no test coverage detected