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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
83b58b56
Commit
83b58b56
authored
Jul 19, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finalise test.
ERP5Site_newCredentialRequest shall disallow to create duplicated credentials.
parent
7c2d43d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
product/ERP5/tests/testERP5Credential.py
product/ERP5/tests/testERP5Credential.py
+5
-6
No files found.
product/ERP5/tests/testERP5Credential.py
View file @
83b58b56
...
...
@@ -1021,7 +1021,8 @@ class TestERP5Credential(ERP5TypeTestCase):
sequence = dict(automatic_call=True)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialAssignmentPropertyList()
self._createCredentialRequest()
response = self._createCredentialRequest()
self.assertTrue('Credential%20Request%20Created.' in response)
portal_catalog = self.portal.portal_catalog
credential_request = portal_catalog.getResultValue(
portal_type="
Credential
Request
", reference="
barney
")
...
...
@@ -1036,15 +1037,13 @@ class TestERP5Credential(ERP5TypeTestCase):
self.tic()
self.assertEqual('accepted', credential_request.getValidationState())
self._createCredentialRequest()
credential_request = portal_catalog.getResultValue(
portal_type="
Credential
Request
", reference="
barney
",
validation_state="
draft
")
response = self._createCredentialRequest()
self.assertTrue('Selected%20login%20is%20already%20in%20use%2C%20pl'
'ease%20choose%20different%20one' in response)
self.portal.portal_alarms.accept_submitted_credentials.activeSense()
transaction.commit()
self.tic()
raise NotImplementedError('Real case is not known yet.')
self.stepUnSetCredentialAutomaticApprovalPreferences()
def testERP5Site_newCredentialRecoveryWithNoSecurityQuestion(self):
...
...
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