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
Labels
Merge Requests
139
Merge Requests
139
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
e53aff97
Commit
e53aff97
authored
Jun 29, 2011
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rewrite docsstrings to reflecting reality
parent
875473d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
18 deletions
+29
-18
product/ERP5/tests/testERP5Credential.py
product/ERP5/tests/testERP5Credential.py
+29
-18
No files found.
product/ERP5/tests/testERP5Credential.py
View file @
e53aff97
...
...
@@ -241,7 +241,7 @@ class TestERP5Credential(ERP5TypeTestCase):
self
.
login
()
preference
=
self
.
_getPreference
()
automatic_call
=
sequence
.
get
(
"automatic_call"
,
True
)
preference
.
e
dit
(
preferred_credential_request_automatic_approval
=
True
,
preferencedit
(
preferred_credential_request_automatic_approval
=
True
,
preferred_credential_alarm_automatic_call
=
automatic_call
)
self
.
_enablePreference
()
self
.
stepTic
()
...
...
@@ -781,7 +781,7 @@ class TestERP5Credential(ERP5TypeTestCase):
def
test_03_simpleCredentialUpdate
(
self
):
'''
c
heck it's possible to update credential informations using credential
C
heck it's possible to update credential informations using credential
update
'''
sequence_list
=
SequenceList
()
...
...
@@ -796,10 +796,11 @@ class TestERP5Credential(ERP5TypeTestCase):
def
test_04_automaticCredentialRequestApproval
(
self
):
'''
if the
workflow credential_automatic_accept_interraction_workflow
is defined on Credential Request portal_type,
the Credential Request object
if the
property preferred_credential_request_automatic_approval is True on
System Preference object. it means that
the Credential Request object
should be accepted automatically and account created without any human
intervention
intervention.
Check that the user is create without human intervention
'''
sequence_list
=
SequenceList
()
sequence_string
=
'SetCredentialRequestAutomaticApprovalPreferences '
\
...
...
@@ -811,10 +812,11 @@ class TestERP5Credential(ERP5TypeTestCase):
def
test_05_automaticCredentialUpdateApproval
(
self
):
'''
if the workflow credential_automatic_accept_interraction_workflow
is defined on Credential Update portal_type, the Credential Update object
should be accepted automatically and object modified without any human
intervention
if the property preferred_credential_request_automatic_approval is True on
System Preference object. it means that the Credential Update object
should be accepted automatically and account created without any human
intervention.
Check that the user is create without human intervention
'''
sequence_list
=
SequenceList
()
sequence_string
=
'SetPersonCredentialUpdateAutomaticApprovalPreferences '
\
...
...
@@ -908,7 +910,11 @@ class TestERP5Credential(ERP5TypeTestCase):
message_text), None)
self.stepUnSetCredentialAutomaticApprovalPreferences()
def testAssignmentProperties(self):
def testAssignmentCreationUsingSystemPreferenceProperty(self):
"""
Check that the category list are used correctly to create a new
assignment
"""
sequence = dict(automatic_call=False)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialAssignmentPropertyList()
...
...
@@ -927,8 +933,10 @@ class TestERP5Credential(ERP5TypeTestCase):
self.stepCheckAssignmentAfterActiveLogin(sequence)
def testERP5Site_activeLogin(self):
""" Test if the script WebSection_activeLogin will create one user
correctly """
"""
Test if the script WebSection_activeLogin will create one user
correctly
"""
sequence = dict(automatic_call=False)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialAssignmentPropertyList()
...
...
@@ -954,8 +962,10 @@ class TestERP5Credential(ERP5TypeTestCase):
self.stepUnSetCredentialAutomaticApprovalPreferences()
def testERP5Site_newCredentialRequest(self):
""" Test if the script ERP5Site_newCredentialRequest will create one
Credential Request correctly """
"""
Check that the script ERP5Site_newCredentialRequest will create one
Credential Request correctly
"""
sequence = dict(automatic_call=False)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialAssignmentPropertyList()
...
...
@@ -972,8 +982,8 @@ class TestERP5Credential(ERP5TypeTestCase):
def testERP5Site_newCredentialRecoveryWithNoSecurityQuestion(self):
"""
Check that password recovery works
in case if not security question with
answer is defined
Check that password recovery works
when security question and answer are
None
"""
sequence_list = SequenceList()
sequence_string = "
CreatePerson
Tic
"
\
...
...
@@ -988,8 +998,9 @@ class TestERP5Credential(ERP5TypeTestCase):
def testERP5Site_newCredentialUpdateWithNoSecurityQuestion(self):
"""
Check that password recovery works in case if not security question with
answer is defined
Check that the script ERP5Site_newCredentialUpdate creates correctly one
Credential Update object is create correctly and the user is updated with
new properties
"""
sequence_list = SequenceList()
sequence_string = "
UnSetCredentialAutomaticApprovalPreferences
"
\
...
...
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