mirror of
https://github.com/fastapi/fastapi.git
synced 2026-09-08 11:35:12 -04:00
✅ Improve test debugging (#1222)
This commit is contained in:
1 parent
483bce3ae1
commit
e9b189e9f2
144 files changed
+434
-434
No files matched your search
@@ -7,6 +7,6 @@ client = TestClient(app)
|
||||
|
||||
def test_path_operation():
|
||||
response = client.post("/cookie/")
|
||||
assert response.status_code == 200
|
||||
assert response.status_code == 200, response.text
|
||||
assert response.json() == {"message": "Come to the dark side, we have cookies"}
|
||||
assert response.cookies["fakesession"] == "fake-cookie-session-value"
|
||||
@@ -7,6 +7,6 @@ client = TestClient(app)
|
||||
|
||||
def test_path_operation():
|
||||
response = client.post("/cookie-and-object/")
|
||||
assert response.status_code == 200
|
||||
assert response.status_code == 200, response.text
|
||||
assert response.json() == {"message": "Come to the dark side, we have cookies"}
|
||||
assert response.cookies["fakesession"] == "fake-cookie-session-value"
|
||||
Reference in new issue
Block a user