Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for test_put_only_required (0.08 sec)

  1. tests/test_tutorial/test_body/test_tutorial004.py

        assert response.json() == {
            "item_id": 123,
            "name": "Foo",
            "price": 50.1,
            "description": "Some Foo",
            "tax": 0.3,
            "q": "somequery",
        }
    
    
    def test_put_only_required(client: TestClient):
        response = client.put(
            "/items/123",
            json={"name": "Foo", "price": 50.1},
        )
        assert response.status_code == 200
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_nested_models/test_tutorial005.py

                "tax": 3.2,
                "tags": IsList("foo", "bar", check_order=False),
                "image": {"url": "http://example.com/image.png", "name": "example image"},
            },
        }
    
    
    def test_put_only_required(client: TestClient):
        response = client.put(
            "/items/5",
            json={"name": "Foo", "price": 35.4},
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_body/test_tutorial003.py

        assert response.json() == {
            "item_id": 123,
            "name": "Foo",
            "price": 50.1,
            "description": "Some Foo",
            "tax": 0.3,
        }
    
    
    def test_put_only_required(client: TestClient):
        response = client.put(
            "/items/123",
            json={"name": "Foo", "price": 50.1},
        )
        assert response.status_code == 200
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_body_nested_models/test_tutorial006.py

                "tags": IsList("foo", "bar", check_order=False),
                "images": [
                    {"url": "http://example.com/image.png", "name": "example image"}
                ],
            },
        }
    
    
    def test_put_only_required(client: TestClient):
        response = client.put(
            "/items/5",
            json={"name": "Foo", "price": 35.4},
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_body_nested_models/test_tutorial004.py

                "tax": 3.2,
                "tags": IsList("foo", "bar", check_order=False),
                "image": {"url": "http://example.com/image.png", "name": "example image"},
            },
        }
    
    
    def test_put_only_required(client: TestClient):
        response = client.put(
            "/items/5",
            json={"name": "Foo", "price": 35.4},
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py

                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
                "tags": tags_expected,
            },
        }
    
    
    def test_put_only_required(client: TestClient):
        response = client.put(
            "/items/5",
            json={"name": "Foo", "price": 35.4},
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body_multiple_params/test_tutorial004.py

                "price": 50.5,
                "description": None,
                "tax": None,
            },
            "user": {"username": "Dave", "full_name": None},
            "q": "somequery",
        }
    
    
    def test_put_only_required(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "importance": 2,
                "item": {"name": "Foo", "price": 50.5},
                "user": {"username": "Dave"},
    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