- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for iter_data (0.04 sec)
-
tests/test_tutorial/test_response_model/test_tutorial001_tutorial001_01.py
] def test_create_item(client: TestClient): item_data = { "name": "Test Item", "description": "A test item", "price": 10.5, "tax": 1.5, "tags": ["test", "item"], } response = client.post("/items/", json=item_data) assert response.status_code == 200, response.text assert response.json() == item_data def test_create_item_only_required(client: TestClient):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 6.5K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial002.py
def test_post_user(client: TestClient): user_data = { "username": "foo", "password": "fighter", "email": "******@****.***", "full_name": "Grave Dohl", } response = client.post( "/user/", json=user_data, ) assert response.status_code == 200, response.text assert response.json() == user_data 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 - 4.4K bytes - Viewed (0)