Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_post_id_foo (0.12 sec)

  1. tests/test_tutorial/test_body_multiple_params/test_tutorial001.py

    
    def test_post_no_body(client: TestClient):
        response = client.put("/items/5", json=None)
        assert response.status_code == 200
        assert response.json() == {"item_id": 5}
    
    
    def test_post_id_foo(client: TestClient):
        response = client.put("/items/foo", json=None)
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "int_parsing",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_multiple_params/test_tutorial002.py

                        "username",
                    ],
                    "msg": "Field required",
                    "type": "missing",
                },
            ],
        }
    
    
    def test_post_id_foo(client: TestClient):
        response = client.put(
            "/items/foo",
            json={
                "item": {"name": "Foo", "price": 50.5},
                "user": {"username": "johndoe"},
            },
        )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top