Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_post_with_tax (0.34 seconds)

  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: str | float):
        response = client.post(
            "/items/",
            json={"name": "Foo", "price": price, "description": "Some Foo", "tax": 0.3},
        )
        assert response.status_code == 200
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 5.8K bytes
    - Click Count (0)
Back to Top