MCPcopy
hub / github.com/fastapi/fastapi / test_encode_model_with_alias_raises

Function test_encode_model_with_alias_raises

tests/test_jsonable_encoder.py:177–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175
176
177def test_encode_model_with_alias_raises():
178 with pytest.raises(ValidationError):
179 ModelWithAlias(foo="Bar") # ty: ignore[missing-argument, unknown-argument]
180
181
182def test_encode_model_with_alias():

Callers

nothing calls this directly

Calls 1

ModelWithAliasClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…