Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for test_put_empty_body (0.07 sec)

  1. tests/test_tutorial/test_body_nested_models/test_tutorial005.py

                "name": "Foo",
                "description": None,
                "price": 35.4,
                "tax": None,
                "tags": [],
                "image": None,
            },
        }
    
    
    def test_put_empty_body(client: TestClient):
        response = client.put(
            "/items/5",
            json={},
        )
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_nested_models/test_tutorial006.py

                "name": "Foo",
                "description": None,
                "price": 35.4,
                "tax": None,
                "tags": [],
                "images": None,
            },
        }
    
    
    def test_put_empty_body(client: TestClient):
        response = client.put(
            "/items/5",
            json={},
        )
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_body_nested_models/test_tutorial004.py

                "name": "Foo",
                "description": None,
                "price": 35.4,
                "tax": None,
                "tags": [],
                "image": None,
            },
        }
    
    
    def test_put_empty_body(client: TestClient):
        response = client.put(
            "/items/5",
            json={},
        )
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_body_nested_models/test_tutorial007.py

                            "url": "http://example.com/image.png",
                            "name": "example image",
                        }
                    ],
                }
            ],
        }
    
    
    def test_put_empty_body(client: TestClient):
        response = client.post(
            "/offers/",
            json={},
        )
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py

            "item": {
                "name": "Foo",
                "description": None,
                "price": 35.4,
                "tax": None,
                "tags": [],
            },
        }
    
    
    def test_put_empty_body(client: TestClient):
        response = client.put(
            "/items/5",
            json={},
        )
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_body_multiple_params/test_tutorial004.py

                        "importance",
                    ],
                    "msg": "Field required",
                    "type": "missing",
                },
            ],
        }
    
    
    def test_put_empty_body(client: TestClient):
        response = client.put("/items/5", json={})
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "missing",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top