Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_jsonable_encoder_requiring_error (0.12 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_multi_body_errors.py

            {
                "item": [
                    {
                        "name": "Foo",
                        "age": "5",
                    }
                ]
            }
        )
    
    
    def test_jsonable_encoder_requiring_error():
        response = client.post("/items/", json=[{"name": "Foo", "age": -1.0}])
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
                {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 6.7K bytes
    - Click Count (0)
Back to Top