Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_required_missing (0.09 sec)

  1. tests/test_request_params/test_file/test_required.py

            "title": body_model_name,
            "type": "object",
        }
    
    
    @pytest.mark.parametrize(
        "path",
        [
            "/required-bytes",
            "/required-uploadfile",
        ],
    )
    def test_required_missing(path: str):
        client = TestClient(app)
        response = client.post(path)
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top