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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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, |
|
|
|