- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_encode_unsupported (0.14 sec)
-
tests/test_jsonable_encoder.py
assert jsonable_encoder(item, exclude={"count"}) == {"name": "foo"} assert jsonable_encoder(item, include={}) == {} assert jsonable_encoder(item, exclude={}) == {"name": "foo", "count": 100} def test_encode_unsupported(): unserializable = Unserializable() with pytest.raises(ValueError): jsonable_encoder(unserializable) @needs_pydanticv2 def test_encode_custom_json_encoders_model_pydanticv2():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 9K bytes - Viewed (0)