Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Barz (0.03 sec)

  1. tests/test_tutorial/test_body_updates/test_tutorial001.py

            "tax": 10.5,
            "tags": [],
        }
    
    
    def test_put(client: TestClient):
        response = client.put(
            "/items/bar", json={"name": "Barz", "price": 3, "description": None}
        )
        assert response.json() == {
            "name": "Barz",
            "description": None,
            "price": 3,
            "tax": 10.5,
            "tags": [],
        }
    
    
    def test_openapi_schema(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_updates/test_tutorial002.py

            "tax": 10.5,
            "tags": ["tag1", "tag2"],
        }
    
    
    def test_patch_name(client: TestClient):
        response = client.patch(
            "/items/bar",
            json={"name": "Barz"},
        )
        assert response.json() == {
            "name": "Barz",
            "description": "The bartenders",
            "price": 62,
            "tax": 20.2,
            "tags": [],
        }
    
    
    def test_openapi_schema(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/body-updates.md

    ### Warnung bezüglich des Ersetzens { #warning-about-replacing }
    
    Das bedeutet, dass, wenn Sie den Artikel `bar` aktualisieren wollen, mittels `PUT` und folgendem Body:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    weil das bereits gespeicherte Attribut `"tax": 20.2` nicht enthalten ist, das Eingabemodell den Defaultwert `"tax": 10.5` erhalten würde.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/body-updates.md

    ### Warning about replacing { #warning-about-replacing }
    
    That means that if you want to update the item `bar` using `PUT` with a body containing:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    because it doesn't include the already stored attribute `"tax": 20.2`, the input model would take the default value of `"tax": 10.5`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/body-updates.md

    ### Advertencia sobre el reemplazo { #warning-about-replacing }
    
    Esto significa que si quieres actualizar el ítem `bar` usando `PUT` con un body que contenga:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    debido a que no incluye el atributo ya almacenado `"tax": 20.2`, el modelo de entrada tomaría el valor por defecto de `"tax": 10.5`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top