File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ def recover_password(email: str, session: SessionDep) -> Message:
6969 subject = email_data .subject ,
7070 html_content = email_data .html_content ,
7171 )
72- return Message (message = "If that email is registered, we sent a password recovery link" )
72+ return Message (
73+ message = "If that email is registered, we sent a password recovery link"
74+ )
7375
7476
7577@router .post ("/reset-password/" )
Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ def test_recovery_password(
5959 headers = normal_user_token_headers ,
6060 )
6161 assert r .status_code == 200
62- assert r .json () == {"message" : "If that email is registered, we sent a password recovery link" }
62+ assert r .json () == {
63+ "message" : "If that email is registered, we sent a password recovery link"
64+ }
6365
6466
6567def test_recovery_password_user_not_exits (
@@ -72,7 +74,9 @@ def test_recovery_password_user_not_exits(
7274 )
7375 # Should return 200 with generic message to prevent email enumeration attacks
7476 assert r .status_code == 200
75- assert r .json () == {"message" : "If that email is registered, we sent a password recovery link" }
77+ assert r .json () == {
78+ "message" : "If that email is registered, we sent a password recovery link"
79+ }
7680
7781
7882def test_reset_password (client : TestClient , db : Session ) -> None :
You can’t perform that action at this time.
0 commit comments