From 9355e364d9df253f5f2249af154186446d69b48f Mon Sep 17 00:00:00 2001 From: BLEMENT33 <150018300+BLEMENT33@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:41:49 +0100 Subject: [PATCH] fix tests --- tests/test_users.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_users.py b/tests/test_users.py index f685c3a94..8373bcbb3 100644 --- a/tests/test_users.py +++ b/tests/test_users.py @@ -28,7 +28,7 @@ FABRISTPP_EMAIL_2 = "fabristpp.eclair3@ecl21.ec-lyon.fr" student_user_email = "student@etu.ec-lyon.fr" -student_user_password = "password" +student_user_password = "Password1!" @pytest_asyncio.fixture(scope="module", autouse=True) @@ -160,7 +160,7 @@ def test_create_and_activate_user(mocker): "/users/activate", json={ "activation_token": UNIQUE_TOKEN, - "password": "password", + "password": "Password1!", "firstname": "firstname", "name": "name", "nickname": "nickname", @@ -210,7 +210,7 @@ def test_recover_and_reset_password(mocker): response = client.post( "/users/reset-password", - json={"reset_token": UNIQUE_TOKEN, "new_password": "new_password"}, + json={"reset_token": UNIQUE_TOKEN, "new_password": "New_password1"}, ) assert response.status_code == 201 @@ -300,7 +300,7 @@ def test_change_password(): json={ "email": student_user_email, "old_password": student_user_password, - "new_password": "the_new_password", + "new_password": "The_new_password1", }, headers={"Authorization": f"Bearer {token_student_user}"}, )