Format code snippet in testing docs properly

This commit is contained in:
Grey Li 2022-02-27 21:19:14 +08:00
parent ab0269ad48
commit 5be744ed55

View file

@ -144,9 +144,9 @@ use ``pathlib.Path`` to get files relative to the current test file.
def test_edit_user(client):
response = client.post("/user/2/edit", data={
"name":"Flask",
"theme":"dark",
"picture":(resources / "picture.png").open("rb"),
"name": "Flask",
"theme": "dark",
"picture": (resources / "picture.png").open("rb"),
})
assert response.status_code == 200