Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BLEMENT33 authored and armanddidierjean committed May 23, 2024
1 parent 802a7bb commit 80c212b
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 @@ -25,7 +25,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 @@ -157,7 +157,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 @@ -207,7 +207,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 @@ -297,7 +297,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 80c212b

Please sign in to comment.