Commit 479e7dee authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

None password is no longer accepted

parent 5e44862f
......@@ -1184,13 +1184,15 @@ class TestERP5Credential(ERP5TypeTestCase):
reference = self._testMethodName
self.logout()
response = self.portal.ERP5Site_newCredentialRequest(reference=reference,
default_email_text='some@one.com',)
default_email_text='some@one.com',
password="secret")
self.login()
self.assertIn('Credential%20Request%20Created.', response)
self.commit()
self.logout()
response = self.portal.ERP5Site_newCredentialRequest(reference=reference,
default_email_text='some@one.com',)
default_email_text='some@one.com',
password="secret")
self.login()
# Now is time to assert that even if no reindexation was done yet, another
# request will already refuse to create new credential request.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment