Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_post_broken_body (0.08 sec)

  1. tests/test_tutorial/test_body/test_tutorial001.py

                        "loc": ["body"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    }
                ]
            }
        )
    
    
    def test_post_broken_body(client: TestClient):
        response = client.post(
            "/items/",
            headers={"content-type": "application/json"},
            content="{some broken json}",
        )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body/test_tutorial001_py310.py

                        "msg": "field required",
                        "type": "value_error.missing",
                    }
                ]
            }
        )
    
    
    @needs_py310
    def test_post_broken_body(client: TestClient):
        response = client.post(
            "/items/",
            headers={"content-type": "application/json"},
            content="{some broken json}",
        )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 15K bytes
    - Viewed (1)
Back to top