Commit 823db600 authored by Łukasz Nowak's avatar Łukasz Nowak

Follow real case.

parent 3e3a860e
...@@ -1032,9 +1032,10 @@ class TestERP5Credential(ERP5TypeTestCase): ...@@ -1032,9 +1032,10 @@ class TestERP5Credential(ERP5TypeTestCase):
self.assertEquals(credential_request.getFunction(), "member") self.assertEquals(credential_request.getFunction(), "member")
credential_request.submit() credential_request.submit()
credential_request.accept() self.portal.portal_alarms.accept_submitted_credentials.activeSense()
transaction.commit() transaction.commit()
self.tic() self.tic()
self.assertEqual('accepted', credential_request.getValidationState())
self._createCredentialRequest() self._createCredentialRequest()
credential_request = portal_catalog.getResultValue( credential_request = portal_catalog.getResultValue(
...@@ -1042,11 +1043,11 @@ class TestERP5Credential(ERP5TypeTestCase): ...@@ -1042,11 +1043,11 @@ class TestERP5Credential(ERP5TypeTestCase):
validation_state="draft") validation_state="draft")
credential_request.submit() credential_request.submit()
credential_request.accept() self.portal.portal_alarms.accept_submitted_credentials.activeSense()
transaction.commit() transaction.commit()
self.tic() self.tic()
self.stepUnSetCredentialAutomaticApprovalPreferences()
raise NotImplementedError('Real case is not known yet.') raise NotImplementedError('Real case is not known yet.')
self.stepUnSetCredentialAutomaticApprovalPreferences()
def testERP5Site_newCredentialRecoveryWithNoSecurityQuestion(self): def testERP5Site_newCredentialRecoveryWithNoSecurityQuestion(self):
""" """
......
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