From 3bd0d98f51830793123aafb3afb97f0e23fea6e9 Mon Sep 17 00:00:00 2001 From: Bill Zhong Date: Mon, 15 Apr 2024 18:58:29 -0230 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Fix=20tests=20when=20first?= =?UTF-8?q?=20superuser=20password=20is=20changed=20in=20.env=20(#1165)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sebastián Ramírez --- backend/app/tests/api/routes/test_login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/tests/api/routes/test_login.py b/backend/app/tests/api/routes/test_login.py index eccc11d..4570abe 100644 --- a/backend/app/tests/api/routes/test_login.py +++ b/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,