Skip to content

Commit 3bd0d98

Browse files
billzhongtiangolo
andauthored
♻️ Fix tests when first superuser password is changed in .env (#1165)
Co-authored-by: Sebastián Ramírez <[email protected]>
1 parent 7ca1a3f commit 3bd0d98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/tests/api/routes/test_login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_reset_password(
7070
client: TestClient, superuser_token_headers: dict[str, str]
7171
) -> None:
7272
token = generate_password_reset_token(email=settings.FIRST_SUPERUSER)
73-
data = {"new_password": "changethis", "token": token}
73+
data = {"new_password": settings.FIRST_SUPERUSER_PASSWORD, "token": token}
7474
r = client.post(
7575
f"{settings.API_V1_STR}/reset-password/",
7676
headers=superuser_token_headers,

0 commit comments

Comments
 (0)