test: don't check for specific exception title

This would be testing other libraries. Not our job.
This commit is contained in:
barredterra 2022-08-15 12:51:11 +02:00
parent 1cd78bb134
commit c8eab1ef75

View file

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