Merge pull request #4469 from greyli/fix-testing-docs
This commit is contained in:
commit
2e161a0b89
1 changed files with 3 additions and 3 deletions
|
|
@ -144,9 +144,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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue