Implement resend OTP
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from pytest import mark, fixture
|
||||
from pytest import mark
|
||||
from secrets import token_hex
|
||||
|
||||
from app.schemas import *
|
||||
@@ -45,3 +45,11 @@ def test_otp_verification(get_test_db):
|
||||
}
|
||||
response = client.post("/otpVerification", json=data)
|
||||
assert response.status_code == 200
|
||||
|
||||
|
||||
def test_resend_otp():
|
||||
data = {
|
||||
"email": "testorganizer@odyfo.com",
|
||||
}
|
||||
response = client.post("/resendOTP", json=data)
|
||||
assert response.status_code == 200
|
||||
|
||||
Reference in New Issue
Block a user