Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_post_without_tax (0.12 sec)

  1. tests/test_tutorial/test_body/test_tutorial002.py

            "name": "Foo",
            "price": 50.5,
            "description": "Some Foo",
            "tax": 0.3,
            "price_with_tax": 50.8,
        }
    
    
    @pytest.mark.parametrize("price", ["50.5", 50.5])
    def test_post_without_tax(client: TestClient, price: Union[str, float]):
        response = client.post(
            "/items/", json={"name": "Foo", "price": price, "description": "Some Foo"}
        )
        assert response.status_code == 200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top