Merge pull request #4537 from MeViMo/2.1.x

Syntax error in testing.rst
This commit is contained in:
David Lord 2022-04-13 10:03:22 -07:00 committed by GitHub
commit 2b8b47817a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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