Skip to content

Commit

Permalink
♻️ Fix tests when first superuser password is changed in .env (#1165)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastián Ramírez <[email protected]>
  • Loading branch information
billzhong and tiangolo authored Apr 15, 2024
1 parent 7ca1a3f commit 3bd0d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/tests/api/routes/test_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_reset_password(
client: TestClient, superuser_token_headers: dict[str, str]
) -> None:
token = generate_password_reset_token(email=settings.FIRST_SUPERUSER)
data = {"new_password": "changethis", "token": token}
data = {"new_password": settings.FIRST_SUPERUSER_PASSWORD, "token": token}
r = client.post(
f"{settings.API_V1_STR}/reset-password/",
headers=superuser_token_headers,
Expand Down

0 comments on commit 3bd0d98

Please sign in to comment.