Skip to content

Commit a49128c

Browse files
committed
test: update auth UI test passwords to meet 12-char minimum
1 parent ec0d71a commit a49128c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/tests/test_routes_auth_ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_setup_set_password(app, monkeypatch):
3939
monkeypatch.setattr(ui_auth, "_save_config_entry", lambda k, v: saved.update({k: v}))
4040
with app.test_client() as client:
4141
r = client.post(
42-
"/api/v1/auth/setup", json={"action": "set_password", "password": "hunter2"}
42+
"/api/v1/auth/setup", json={"action": "set_password", "password": "hunter2-correct"}
4343
)
4444
assert r.status_code == 200
4545
assert "ui_password_hash" in saved
@@ -124,7 +124,7 @@ def test_change_password_correct(app, monkeypatch):
124124
sess["ui_authenticated"] = True
125125
r = client.post(
126126
"/api/v1/auth/change-password",
127-
json={"current_password": "old", "new_password": "newpass1"},
127+
json={"current_password": "old", "new_password": "newpass1-secure"},
128128
)
129129
assert r.status_code == 200
130130
assert "ui_password_hash" in saved

0 commit comments

Comments
 (0)