()
| 721 | |
| 722 | |
| 723 | def test_json_schema(): |
| 724 | m = SimpleModel(x=1) |
| 725 | with pytest.warns( |
| 726 | PydanticDeprecatedSince20, match='^The `schema` method is deprecated; use `model_json_schema` instead.' |
| 727 | ): |
| 728 | assert m.schema() == { |
| 729 | 'title': 'SimpleModel', |
| 730 | 'type': 'object', |
| 731 | 'properties': {'x': {'title': 'X', 'type': 'integer'}}, |
| 732 | 'required': ['x'], |
| 733 | } |
| 734 | |
| 735 | |
| 736 | def test_validate(): |
nothing calls this directly
no test coverage detected