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:
Kevin Morris 2022-02-19 16:12:15 -08:00
parent 4a4fd01563
commit 80622cc966
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 6 additions and 5 deletions

View file

@ -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: