Skip to content

Commit

Permalink
chore: remove unnecessary assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Jan 16, 2023
1 parent 366ba47 commit c7edd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,9 @@ def test_version(self):
def test_set_password(self):
from frappe.utils.password import check_password

self.assertEqual(check_password("Administrator", "am"), "Administrator")
self.execute("bench --site {site} set-password Administrator test1")
self.assertEqual(self.returncode, 0)
frappe.db.rollback()
self.assertEqual(check_password("Administrator", "test1"), "Administrator")
# to release the lock taken by check_password
frappe.db.rollback()
Expand Down

0 comments on commit c7edd7e

Please sign in to comment.