Implement password reset

This commit is contained in:
2020-10-08 21:23:19 +02:00
parent 0b53bbaa70
commit 6c4d6919d7
4 changed files with 55 additions and 5 deletions

View File

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