()
| 4 | client = TestClient(app) |
| 5 | |
| 6 | def test_read_main(): |
| 7 | response = client.get("/") |
| 8 | assert response.status_code == 200 |
| 9 | assert response.json() == {"message": "Hello World"} # Adjust expected response |
| 10 | |
| 11 | def test_create_item(): |
| 12 | response = client.post("/items/", json={"name": "Test Item", "description": "A test item"}) |