test: don't check for specific exception title
This would be testing other libraries. Not our job.
This commit is contained in:
parent
1cd78bb134
commit
c8eab1ef75
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ class TestUser(unittest.TestCase):
|
|||
user = frappe.get_doc("User", "test@example.com")
|
||||
frappe.flags.in_test = False
|
||||
user.new_password = "password"
|
||||
self.assertRaisesRegex(frappe.exceptions.ValidationError, "Invalid Password", user.save)
|
||||
self.assertRaises(frappe.exceptions.ValidationError, user.save)
|
||||
user.reload()
|
||||
user.new_password = "Eastern_43A1W"
|
||||
user.save()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue