mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: suspend check should check Suspended...
This was causing some false negative errors in the update process, and it clearly not correct -- oops :( Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
4a4fd01563
commit
80622cc966
2 changed files with 6 additions and 5 deletions
|
@ -916,13 +916,13 @@ def test_post_account_edit_error_invalid_password(client: TestClient,
|
|||
assert "Invalid password." in content
|
||||
|
||||
|
||||
def test_post_account_edit_inactivity_unauthorized(client: TestClient,
|
||||
user: User):
|
||||
def test_post_account_edit_suspend_unauthorized(client: TestClient,
|
||||
user: User):
|
||||
cookies = {"AURSID": user.login(Request(), "testPassword")}
|
||||
post_data = {
|
||||
"U": "test",
|
||||
"E": "test@example.org",
|
||||
"J": True,
|
||||
"S": True,
|
||||
"passwd": "testPassword"
|
||||
}
|
||||
with client as request:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue