changeset f6a2a8cc9081 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=f6a2a8cc9081
description:
        Remove password entropy test

        issue11100
diffstat:

 trytond/tests/test_user.py |  13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diffs (30 lines):

diff -r ce1e97be71de -r f6a2a8cc9081 trytond/tests/test_user.py
--- a/trytond/tests/test_user.py        Sun Jan 23 13:32:59 2022 +0100
+++ b/trytond/tests/test_user.py        Sun Jan 23 22:06:21 2022 +0100
@@ -48,10 +48,6 @@
             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))
@@ -115,15 +111,6 @@
             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"
         pool = Pool()

Reply via email to