Implement password reset
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from secrets import token_hex
|
||||
from pytest import main
|
||||
|
||||
from app.schemas import *
|
||||
from database.models import *
|
||||
@@ -54,3 +55,8 @@ def test_forgot_password():
|
||||
assert response.status_code == 200
|
||||
|
||||
|
||||
def test_reset_password():
|
||||
main(["-k" "test_otp_verification"])
|
||||
data = {"email": "oyvey@hotmail.com", "password": "vivashviva"}
|
||||
response = client.post("/reset_password", json=data)
|
||||
assert response.status_code == 200
|
||||
|
||||
Reference in New Issue
Block a user