From de477ce9238c91fee97c798e26ce55b7290766fe Mon Sep 17 00:00:00 2001 From: Makarand Bauskar Date: Thu, 11 May 2017 10:48:38 +0530 Subject: [PATCH] [minor] disabled the password strength test in tearDown (#3259) --- frappe/core/doctype/user/test_user.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frappe/core/doctype/user/test_user.py b/frappe/core/doctype/user/test_user.py index 0b7bcb7ff8..b6161b5ef1 100644 --- a/frappe/core/doctype/user/test_user.py +++ b/frappe/core/doctype/user/test_user.py @@ -16,6 +16,11 @@ from frappe.core.doctype.user.user import MaxUsersReachedError, test_password_st test_records = frappe.get_test_records('User') class TestUser(unittest.TestCase): + def tearDown(self): + # disable password strength test + frappe.db.set_value("System Settings", "System Settings", "enable_password_policy", 0) + frappe.db.set_value("System Settings", "System Settings", "minimum_password_score", "") + def test_user_type(self): new_user = frappe.get_doc(dict(doctype='User', email='test-for-type@example.com', first_name='Tester')).insert()