Commit e53aff97 authored by Gabriel Monnerat's avatar Gabriel Monnerat

rewrite docsstrings to reflecting reality

parent 875473d3
...@@ -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.edit(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):
''' '''
check it's possible to update credential informations using credential Check 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 " \
......
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