mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-26 14:41:42 +01:00
refactor: suppress welcome mail
This commit is contained in:
@@ -488,7 +488,9 @@ class ERPNextTestSuite(unittest.TestCase):
|
||||
cls.users = []
|
||||
for x in records:
|
||||
if not frappe.db.exists("User", {"email": x.get("email")}):
|
||||
cls.users.append(frappe.get_doc(x).insert())
|
||||
user = frappe.get_doc(x)
|
||||
user.flags.no_welcome_mail = True
|
||||
cls.users.append(user.insert())
|
||||
else:
|
||||
cls.users.append(frappe.get_doc("User", {"email": x.get("email")}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user