Implement resend OTP

This commit is contained in:
2020-09-28 18:46:44 +02:00
parent d87aade803
commit 97700c0855
4 changed files with 40 additions and 4 deletions

View File

@@ -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