Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for test_post_no_body (0.06 sec)

  1. tests/test_tutorial/test_body_multiple_params/test_tutorial001.py

    
    def test_post_no_body_q_bar(client: TestClient):
        response = client.put("/items/5?q=bar", json=None)
        assert response.status_code == 200
        assert response.json() == {"item_id": 5, "q": "bar"}
    
    
    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):
    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

                "name": "Foo",
                "price": 50.5,
                "description": None,
                "tax": None,
            },
            "user": {"username": "johndoe", "full_name": None},
        }
    
    
    def test_post_no_body(client: TestClient):
        response = client.put("/items/5", json=None)
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "input": None,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_body_multiple_params/test_tutorial005.py

            "item_id": 5,
            "item": {
                "name": "Foo",
                "price": 50.5,
                "description": None,
                "tax": None,
            },
        }
    
    
    def test_post_no_body(client: TestClient):
        response = client.put("/items/5", json=None)
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "input": None,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.2K bytes
    - Viewed (0)
Back to top