- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_wrong_headers (0.06 sec)
-
tests/test_tutorial/test_body/test_tutorial001.py
assert response.status_code == 200, response.text assert response.json() == { "name": "Foo", "description": None, "price": 50.5, "tax": None, } def test_wrong_headers(client: TestClient): data = '{"name": "Foo", "price": 50.5}' response = client.post( "/items/", content=data, headers={"Content-Type": "text/plain"} )Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 10.6K bytes - Viewed (0)