fix:routen2
This commit is contained in:
1 parent
90fbbffc20
commit
f18298d07f
2 files changed
+24
-8
No files matched your search
@@ -155,7 +155,8 @@ def test_edit_and_delete_with_personal_link(app: Any) -> None:
|
||||
csrf = token_for(first, f"{link}/edit")
|
||||
resp = first.post(f"{link}/edit", data={"csrf_token": csrf, f"q{qid}": late})
|
||||
assert resp.status_code == 303 and resp.headers["location"].endswith("?done=saved")
|
||||
assert sorted(b[:2] for b in bookings(qid)) == [(early, "confirmed"), (late, "confirmed")]
|
||||
assert sorted(b[:2] for b in bookings(qid)) == sorted([(early, "confirmed"),
|
||||
(late, "confirmed")])
|
||||
# Löschen braucht die Bestätigung
|
||||
csrf = token_for(first, link)
|
||||
assert first.post(f"{link}/delete", data={"csrf_token": csrf}).status_code == 400
|
||||
|
||||
Reference in new issue
Block a user