Selaa lähdekoodia

[minor] disabled the password strength test in tearDown (#3259)

version-14
Makarand Bauskar 8 vuotta sitten
committed by Rushabh Mehta
vanhempi
commit
de477ce923
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. +5
    -0
      frappe/core/doctype/user/test_user.py

+ 5
- 0
frappe/core/doctype/user/test_user.py Näytä tiedosto

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


Ladataan…
Peruuta
Tallenna