Skip to content

Commit 9412886

Browse files
committed
Update
1 parent bb38f01 commit 9412886

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

backend/app/tests/api/routes/test_login.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ def test_reset_password(
100100
assert r.status_code == 200
101101
assert r.json() == {"message": "Password updated successfully"}
102102

103-
user_query = select(User).where(User.email == email)
104-
user = db.exec(user_query).first()
105-
assert user
103+
db.refresh(user)
106104
assert verify_password(new_password, user.hashed_password)
107105

108106

0 commit comments

Comments
 (0)