Improve test debugging (#1222)

This commit is contained in:
Samuel Colvin authored and GitHub committed 2020-04-08 06:37:38 +02:00
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"