forked from PiotrSurowiec90/RoamMates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8da893
commit 8dc60da
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|