Skip to content

Commit

Permalink
Updated login tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrSurowiec90 committed Dec 30, 2023
1 parent b8da893 commit 8dc60da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def test_user_signup_fail(web_client, test_web_address):
def test_user_login(web_client, test_web_address):
response = web_client.post(
f"http://{test_web_address}/users/authentication",
data={"email": "[email protected]", "password": "amina1"},
json = {"email": "[email protected]", "password": "amina1"}
#data={"email": "[email protected]", "password": "amina1"},
)

assert response.status_code == 200
Expand All @@ -69,7 +70,7 @@ def test_user_login(web_client, test_web_address):
def test_user_login_fail(web_client, test_web_address):
response = web_client.post(
f"http://{test_web_address}/users/authentication",
data={"email": "[email protected]", "password": "wrong_password"},
json={"email": "[email protected]", "password": "wrong_password"},
)

assert response.status_code == 401
Expand Down

0 comments on commit 8dc60da

Please sign in to comment.