Commit 7eff5c1a authored by Aurel's avatar Aurel

None password is no longer accepted

parent 5dd259d9
......@@ -1183,13 +1183,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.assertTrue('Credential%20Request%20Created.' in 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