Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for test_post_body_form_no_data (0.21 sec)

  1. tests/test_tutorial/test_request_form_models/test_tutorial002_pv1_an.py

                    "loc": ["body", "username"],
                    "msg": "field required",
                }
            ]
        }
    
    
    # TODO: remove when deprecating Pydantic v1
    @needs_pydanticv1
    def test_post_body_form_no_data(client: TestClient):
        response = client.post("/login/")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "value_error.missing",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_request_form_models/test_tutorial001_an_py39.py

                        "msg": "field required",
                        "type": "value_error.missing",
                    }
                ]
            }
        )
    
    
    @needs_py39
    def test_post_body_form_no_data(client: TestClient):
        response = client.post("/login/")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 05 15:16:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_form_models/test_tutorial002_an.py

                    "loc": ["body", "username"],
                    "msg": "Field required",
                    "input": {"password": "secret"},
                }
            ]
        }
    
    
    @needs_pydanticv2
    def test_post_body_form_no_data(client: TestClient):
        response = client.post("/login/")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "missing",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py

                    "type": "value_error.missing",
                    "loc": ["body", "username"],
                    "msg": "field required",
                }
            ]
        }
    
    
    @needs_pydanticv1
    def test_post_body_form_no_data(client: TestClient):
        response = client.post("/login/")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "value_error.missing",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_request_form_models/test_tutorial002.py

                    "loc": ["body", "username"],
                    "msg": "Field required",
                    "input": {"password": "secret"},
                }
            ]
        }
    
    
    @needs_pydanticv2
    def test_post_body_form_no_data(client: TestClient):
        response = client.post("/login/")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "missing",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_request_form_models/test_tutorial002_pv1_an_p39.py

                    "loc": ["body", "username"],
                    "msg": "field required",
                }
            ]
        }
    
    
    # TODO: remove when deprecating Pydantic v1
    @needs_pydanticv1
    @needs_py39
    def test_post_body_form_no_data(client: TestClient):
        response = client.post("/login/")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "value_error.missing",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_request_form_models/test_tutorial001_an.py

                        "loc": ["body", "username"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    }
                ]
            }
        )
    
    
    def test_post_body_form_no_data(client: TestClient):
        response = client.post("/login/")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 05 15:16:50 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_form_models/test_tutorial002_an_py39.py

                    "msg": "Field required",
                    "input": {"password": "secret"},
                }
            ]
        }
    
    
    @needs_pydanticv2
    @needs_py39
    def test_post_body_form_no_data(client: TestClient):
        response = client.post("/login/")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "missing",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_form_models/test_tutorial001.py

                        "loc": ["body", "username"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    }
                ]
            }
        )
    
    
    def test_post_body_form_no_data(client: TestClient):
        response = client.post("/login/")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 05 15:16:50 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_forms/test_tutorial001.py

                        "loc": ["body", "username"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    }
                ]
            }
        )
    
    
    def test_post_body_form_no_data(client: TestClient):
        response = client.post("/login/")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top