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
1
Merge Requests
1
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
Boxiang Sun
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
Hide 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):
...
@@ -241,7 +241,7 @@ class TestERP5Credential(ERP5TypeTestCase):
self
.
login
()
self
.
login
()
preference
=
self
.
_getPreference
()
preference
=
self
.
_getPreference
()
automatic_call
=
sequence
.
get
(
"automatic_call"
,
True
)
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
)
preferred_credential_alarm_automatic_call
=
automatic_call
)
self
.
_enablePreference
()
self
.
_enablePreference
()
self
.
stepTic
()
self
.
stepTic
()
...
@@ -781,7 +781,7 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -781,7 +781,7 @@ class TestERP5Credential(ERP5TypeTestCase):
def
test_03_simpleCredentialUpdate
(
self
):
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
update
'''
'''
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
...
@@ -796,10 +796,11 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -796,10 +796,11 @@ class TestERP5Credential(ERP5TypeTestCase):
def
test_04_automaticCredentialRequestApproval
(
self
):
def
test_04_automaticCredentialRequestApproval
(
self
):
'''
'''
if the
workflow credential_automatic_accept_interraction_workflow
if the
property preferred_credential_request_automatic_approval is True on
is defined on Credential Request portal_type,
the Credential Request object
System Preference object. it means that
the Credential Request object
should be accepted automatically and account created without any human
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_list
=
SequenceList
()
sequence_string
=
'SetCredentialRequestAutomaticApprovalPreferences '
\
sequence_string
=
'SetCredentialRequestAutomaticApprovalPreferences '
\
...
@@ -811,10 +812,11 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -811,10 +812,11 @@ class TestERP5Credential(ERP5TypeTestCase):
def
test_05_automaticCredentialUpdateApproval
(
self
):
def
test_05_automaticCredentialUpdateApproval
(
self
):
'''
'''
if the workflow credential_automatic_accept_interraction_workflow
if the property preferred_credential_request_automatic_approval is True on
is defined on Credential Update portal_type, the Credential Update object
System Preference object. it means that the Credential Update object
should be accepted automatically and object modified without any human
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_list
=
SequenceList
()
sequence_string
=
'SetPersonCredentialUpdateAutomaticApprovalPreferences '
\
sequence_string
=
'SetPersonCredentialUpdateAutomaticApprovalPreferences '
\
...
@@ -908,7 +910,11 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -908,7 +910,11 @@ class TestERP5Credential(ERP5TypeTestCase):
message_text), None)
message_text), None)
self.stepUnSetCredentialAutomaticApprovalPreferences()
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)
sequence = dict(automatic_call=False)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialAssignmentPropertyList()
self.stepSetCredentialAssignmentPropertyList()
...
@@ -927,8 +933,10 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -927,8 +933,10 @@ class TestERP5Credential(ERP5TypeTestCase):
self.stepCheckAssignmentAfterActiveLogin(sequence)
self.stepCheckAssignmentAfterActiveLogin(sequence)
def testERP5Site_activeLogin(self):
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)
sequence = dict(automatic_call=False)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialAssignmentPropertyList()
self.stepSetCredentialAssignmentPropertyList()
...
@@ -954,8 +962,10 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -954,8 +962,10 @@ class TestERP5Credential(ERP5TypeTestCase):
self.stepUnSetCredentialAutomaticApprovalPreferences()
self.stepUnSetCredentialAutomaticApprovalPreferences()
def testERP5Site_newCredentialRequest(self):
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)
sequence = dict(automatic_call=False)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialRequestAutomaticApprovalPreferences(sequence)
self.stepSetCredentialAssignmentPropertyList()
self.stepSetCredentialAssignmentPropertyList()
...
@@ -972,8 +982,8 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -972,8 +982,8 @@ class TestERP5Credential(ERP5TypeTestCase):
def testERP5Site_newCredentialRecoveryWithNoSecurityQuestion(self):
def testERP5Site_newCredentialRecoveryWithNoSecurityQuestion(self):
"""
"""
Check that password recovery works
in case if not security question with
Check that password recovery works
when security question and answer are
answer is defined
None
"""
"""
sequence_list = SequenceList()
sequence_list = SequenceList()
sequence_string = "
CreatePerson
Tic
"
\
sequence_string = "
CreatePerson
Tic
"
\
...
@@ -988,8 +998,9 @@ class TestERP5Credential(ERP5TypeTestCase):
...
@@ -988,8 +998,9 @@ class TestERP5Credential(ERP5TypeTestCase):
def testERP5Site_newCredentialUpdateWithNoSecurityQuestion(self):
def testERP5Site_newCredentialUpdateWithNoSecurityQuestion(self):
"""
"""
Check that password recovery works in case if not security question with
Check that the script ERP5Site_newCredentialUpdate creates correctly one
answer is defined
Credential Update object is create correctly and the user is updated with
new properties
"""
"""
sequence_list = SequenceList()
sequence_list = SequenceList()
sequence_string = "
UnSetCredentialAutomaticApprovalPreferences
"
\
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