Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BLEMENT33 committed Mar 18, 2024
1 parent 76f604b commit 9355e36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}"},
)
Expand Down

0 comments on commit 9355e36

Please sign in to comment.