details:   https://code.tryton.org/tryton/commit/5bbfb739eaca
branch:    8.2
user:      Cédric Krier <[email protected]>
date:      Sun Nov 29 09:13:03 2026 +0100
description:
        Update naiad tests to not read the reset password of the users

        Since 713f57589e14 it is no more allowed to read the reset password.

        Closes #15287
        (grafted from 1a09fd22640ec093cd1b2ae38d768f0168f06866)
diffstat:

 naiad/naiad/tests/test_action.py |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r 6040a0e22658 -r 5bbfb739eaca naiad/naiad/tests/test_action.py
--- a/naiad/naiad/tests/test_action.py  Fri Nov 20 17:07:06 2026 +0100
+++ b/naiad/naiad/tests/test_action.py  Sun Nov 29 09:13:03 2026 +0100
@@ -26,16 +26,17 @@
         "Test action on record"
         record = Record('res.user', id=1)
         record = self.client().action(
-            record, 'reset_password', fields=['password_reset'])
+            record, 'reset_password', fields=['password_reset_expire'])
 
-        self.assertIsNotNone(record.password_reset)
+        self.assertIsNotNone(record.password_reset_expire)
 
     def test_action_arguments(self):
         "Test action with arguments"
         record = self.client().action(
-            'res.user', 'reset_password', id=1, fields=['password_reset'],
+            'res.user', 'reset_password', id=1,
+            fields=['password_reset_expire'],
             kwargs={
                 'length': 12,
                 })
 
-        self.assertEqual(len(record.password_reset), 12)
+        self.assertIsNotNone(record.password_reset_expire)

Reply via email to