Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for test_jsonable_encoder_requiring_error (0.19 seconds)

  1. tests/test_jsonable_encoder.py

    Sebastián Ramírez <******@****.***> 1771322354 -0800
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  2. 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