Implement forgot password
This commit is contained in:
@@ -25,10 +25,7 @@ def test_registration():
|
||||
|
||||
def test_otp_verification(get_test_db):
|
||||
user = get_test_db.query(Users).filter(Users.email == "oyvey@hotmail.com").first()
|
||||
data = {
|
||||
"access_key": user.access_key,
|
||||
"otp": user.otp,
|
||||
}
|
||||
data = {"access_key": user.access_key, "otp": user.otp}
|
||||
response = client.post("/otpVerification", json=data)
|
||||
assert response.status_code == 200
|
||||
|
||||
@@ -46,8 +43,14 @@ def test_login():
|
||||
|
||||
|
||||
def test_resend_otp():
|
||||
data = {
|
||||
"email": "testorganizer@odyfo.com",
|
||||
}
|
||||
data = {"email": "testorganizer@odyfo.com"}
|
||||
response = client.post("/resendOTP", json=data)
|
||||
assert response.status_code == 200
|
||||
|
||||
|
||||
def test_forgot_password():
|
||||
data = {"email": "oyvey@hotmail.com"}
|
||||
response = client.post("/forgot_password", json=data)
|
||||
assert response.status_code == 200
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user