From af64c1e2d7dbff33f716117119b5b2a0004a9dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 23 Jan 2022 22:06:21 +0100 Subject: [PATCH] Remove password entropy test issue11100 --- trytond/tests/test_user.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/trytond/tests/test_user.py b/trytond/tests/test_user.py index de80cdb0c5..e90b4e9539 100644 --- a/trytond/tests/test_user.py +++ b/trytond/tests/test_user.py @@ -48,10 +48,6 @@ class UserTestCase(unittest.TestCase): os.path.join(os.path.dirname(__file__), 'forbidden.txt')) self.addCleanup(config.set, 'password', 'forbidden', forbidden) - entropy = config.get('password', 'entropy') - config.set('password', 'entropy', '0.9') - self.addCleanup(config.set, 'password', 'entropy', entropy) - reset_from = config.get('email', 'from', fallback='') config.set('email', 'from', FROM) self.addCleanup(lambda: config.set('email', 'from', reset_from)) @@ -114,15 +110,6 @@ class UserTestCase(unittest.TestCase): with self.assertRaises(PasswordError): User.validate_password('password', []) - @with_transaction() - def test_validate_password_entropy(self): - "Test validate password entropy" - pool = Pool() - User = pool.get('res.user') - - with self.assertRaises(PasswordError): - User.validate_password('aaaaaa', []) - @with_transaction() def test_validate_password_name(self): "Test validate password name"