Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
5d6cbf59
Commit
5d6cbf59
authored
Jul 19, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check Credential Request for already existing reference.
Mark as NotImplementedError, as use case is not described yet.
parent
027ee93e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
product/ERP5/tests/testERP5Credential.py
product/ERP5/tests/testERP5Credential.py
+35
-0
No files found.
product/ERP5/tests/testERP5Credential.py
View file @
5d6cbf59
...
@@ -1013,6 +1013,41 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -1013,6 +1013,41 @@ class TestERP5Credential(ERP5TypeTestCase):
self.assertEquals(credential_request.getFunction(), "
member
")
self.assertEquals(credential_request.getFunction(), "
member
")
self.stepUnSetCredentialAutomaticApprovalPreferences()
self.stepUnSetCredentialAutomaticApprovalPreferences()
def test_double_ERP5Site_newCredentialRequest(self):
"""
Check that the script ERP5Site_newCredentialRequest will create one
Credential Request correctly
"""
sequence = dict(automatic_call=False)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialAssignmentPropertyList()
self._createCredentialRequest()
portal_catalog = self.portal.portal_catalog
credential_request = portal_catalog.getResultValue(
portal_type="
Credential
Request
", reference="
barney
")
self.assertEquals(credential_request.getFirstName(), "
Barney
")
self.assertEquals(credential_request.getDefaultEmailText(),
"
barney
@
duff
.
com
")
self.assertEquals(credential_request.getRole(), "
internal
")
self.assertEquals(credential_request.getFunction(), "
member
")
credential_request.submit()
credential_request.accept()
transaction.commit()
self.tic()
self._createCredentialRequest()
credential_request = portal_catalog.getResultValue(
portal_type="
Credential
Request
", reference="
barney
",
validation_state="
draft
")
credential_request.submit()
credential_request.accept()
transaction.commit()
self.tic()
self.stepUnSetCredentialAutomaticApprovalPreferences()
raise NotImplementedError('Real case is not known yet.')
def testERP5Site_newCredentialRecoveryWithNoSecurityQuestion(self):
def testERP5Site_newCredentialRecoveryWithNoSecurityQuestion(self):
"""
"""
Check that password recovery works when security question and answer are
Check that password recovery works when security question and answer are
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment