From 61f967f5b66694529ab499cfccd10b3dd43fe31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Wed, 31 Aug 2011 11:09:02 +0200 Subject: [PATCH] when creating a credential recovery for a password, reference must be setted --- product/ERP5/tests/testERP5Credential.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/product/ERP5/tests/testERP5Credential.py b/product/ERP5/tests/testERP5Credential.py index 39b8cb1505..a6bb21fe87 100644 --- a/product/ERP5/tests/testERP5Credential.py +++ b/product/ERP5/tests/testERP5Credential.py @@ -579,6 +579,7 @@ class TestERP5Credential(ERP5TypeTestCase): # associate it with barney credential_recovery.setDestinationDecisionValue(person) + credential_recovery.setReference(person.getReference()) sequence.edit(credential_recovery=credential_recovery) def stepRequestCredentialRecoveryWithERP5Site_newCredentialRecovery(self, @@ -668,10 +669,10 @@ class TestERP5Credential(ERP5TypeTestCase): self.assertEqual(barney.getDefaultEmailText(), send_to) def stepCheckPasswordChange(self, sequence=None, sequence_list=None, **kw): - ''' + """ check it's possible to change the user password using the link in the email - ''' + """ # get the url last_message = self.portal.MailHost._last_message rawstr = r"""PasswordTool_viewResetPassword""" -- 2.30.9