MCPcopy
hub / github.com/fastapi/fastapi / test_encode_model_with_alias

Function test_encode_model_with_alias

tests/test_jsonable_encoder.py:182–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180
181
182def test_encode_model_with_alias():
183 model = ModelWithAlias(Foo="Bar")
184 assert jsonable_encoder(model) == {"Foo": "Bar"}
185
186
187def test_encode_model_with_default():

Callers

nothing calls this directly

Calls 2

jsonable_encoderFunction · 0.90
ModelWithAliasClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…