Browse Source

♻️ Fix tests when first superuser password is changed in .env (#1165)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
pull/13907/head
Bill Zhong 1 year ago
committed by GitHub
parent
commit
3bd0d98f51
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      backend/app/tests/api/routes/test_login.py

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

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

Loading…
Cancel
Save