Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be/test/authentication #450

Merged
merged 9 commits into from
Oct 30, 2023
Prev Previous commit
Next Next commit
Closes #433
bgmrsln committed Oct 30, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit ad177a04dd7e7086e692ce71bacb0bab4d7b686d
14 changes: 11 additions & 3 deletions Disaster-Response-Platform/backend/Tests/user_test.py
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@
"email": "begum@outwelook.com",
"disabled": False,
"first_name": "Begum",
"last_name": "Arslan",
"phone_number": "05355783149",
"is_email_verified": False,
"private_account": False
@@ -91,6 +90,15 @@

}

merve_singup_body={
"username": "merve",
"first_name": "merve",
"last_name": "gurbuz",
"password": "12345merve",
"phone_number": "05527974742",
"email": "merve16gurbuz@gmail.com"
}

email_login_body= {
"username": "begum",
"password": "a2345678"
@@ -118,11 +126,11 @@ def test_signup2():
def test_signup3():
response = client.post("/api/users/signup", json=
wrong_phone_number_signup_body)
assert response.status_code == 422
assert response.status_code == 400

def test_signup4():
response = client.post("/api/users/signup", json=
only_email_signup_body)
merve_singup_body)
assert response.status_code == 201

def test_signup5():