Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_post_with_tax (0.05 sec)

  1. tests/test_tutorial/test_body/test_tutorial002.py

        mod = importlib.import_module(f"docs_src.body.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    @pytest.mark.parametrize("price", ["50.5", 50.5])
    def test_post_with_tax(client: TestClient, price: Union[str, float]):
        response = client.post(
            "/items/",
            json={"name": "Foo", "price": price, "description": "Some Foo", "tax": 0.3},
        )
    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