MCPcopy
hub / github.com/fastapi/fastapi / test_encode_unsupported

Function test_encode_unsupported

tests/test_jsonable_encoder.py:134–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132
133
134def test_encode_unsupported():
135 unserializable = Unserializable()
136 with pytest.raises(ValueError):
137 jsonable_encoder(unserializable)
138
139
140def test_encode_custom_json_encoders_model_pydanticv2():

Callers

nothing calls this directly

Calls 2

jsonable_encoderFunction · 0.90
UnserializableClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…