MCPcopy
hub / github.com/pydantic/pydantic / test_dict

Function test_dict

tests/test_deprecated.py:668–671  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

666
667
668def test_dict():
669 m = SimpleModel(x=1)
670 with pytest.warns(PydanticDeprecatedSince20, match=r'^The `dict` method is deprecated; use `model_dump` instead\.'):
671 assert m.dict() == {'x': 1}
672
673
674def test_json():

Callers

nothing calls this directly

Calls 2

SimpleModelClass · 0.70
dictMethod · 0.45

Tested by

no test coverage detected