Syntax error in testing.rst

This commit is contained in:
MeViMo 2022-04-13 18:49:51 +02:00
parent 411dbb37e2
commit 4dd14ed039

View file

@ -142,9 +142,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