Commit ae4fc106 authored by Jérome Perrin's avatar Jérome Perrin

run test quietly, use real method names in sequences to ease navigation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10663 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 57b0e45c
...@@ -54,7 +54,7 @@ class TestHR(ERP5TypeTestCase): ...@@ -54,7 +54,7 @@ class TestHR(ERP5TypeTestCase):
# pseudo constants # pseudo constants
RUN_ALL_TEST = 1 RUN_ALL_TEST = 1
QUIET = 0 QUIET = 1
################################## ##################################
...@@ -721,14 +721,14 @@ class TestHR(ERP5TypeTestCase): ...@@ -721,14 +721,14 @@ class TestHR(ERP5TypeTestCase):
""" """
if not run: return if not run: return
sequence_list = SequenceList() sequence_list = SequenceList()
step_list = [ 'CreateOrganisation' step_list = [ 'stepCreateOrganisation'
, 'SetOrganisationCategories' , 'stepSetOrganisationCategories'
, 'ResetOrganisationCategories' , 'stepResetOrganisationCategories'
, 'SetOrganisationAddress' , 'stepSetOrganisationAddress'
] ]
sequence_string = ' '.join(step_list) sequence_string = ' '.join(step_list)
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self, quiet=quiet)
def test_02_Person(self, quiet=QUIET, run=RUN_ALL_TEST): def test_02_Person(self, quiet=QUIET, run=RUN_ALL_TEST):
...@@ -737,14 +737,14 @@ class TestHR(ERP5TypeTestCase): ...@@ -737,14 +737,14 @@ class TestHR(ERP5TypeTestCase):
""" """
if not run: return if not run: return
sequence_list = SequenceList() sequence_list = SequenceList()
step_list = [ 'CreatePerson' step_list = [ 'stepCreatePerson'
, 'CreateOrganisation' , 'stepCreateOrganisation'
, 'SetPersonCareer' , 'stepSetPersonCareer'
, 'CheckPersonCareer' , 'stepCheckPersonCareer'
] ]
sequence_string = ' '.join(step_list) sequence_string = ' '.join(step_list)
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self, quiet=quiet)
def test_03_Subordination(self, quiet=QUIET, run=RUN_ALL_TEST): def test_03_Subordination(self, quiet=QUIET, run=RUN_ALL_TEST):
""" """
...@@ -752,15 +752,15 @@ class TestHR(ERP5TypeTestCase): ...@@ -752,15 +752,15 @@ class TestHR(ERP5TypeTestCase):
""" """
if not run: return if not run: return
sequence_list = SequenceList() sequence_list = SequenceList()
step_list = [ 'CreatePerson' step_list = [ 'stepCreatePerson'
, 'CreateOrganisation' , 'stepCreateOrganisation'
, 'SetPersonCareer' , 'stepSetPersonCareer'
, 'AddCareerStepInAnotherOrganisation' , 'stepAddCareerStepInAnotherOrganisation'
, 'CheckCareerSubordination' , 'stepCheckCareerSubordination'
] ]
sequence_string = ' '.join(step_list) sequence_string = ' '.join(step_list)
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self, quiet=quiet)
def test_04_SubordinationAndAddress(self, quiet=QUIET, run=RUN_ALL_TEST): def test_04_SubordinationAndAddress(self, quiet=QUIET, run=RUN_ALL_TEST):
""" """
...@@ -768,15 +768,15 @@ class TestHR(ERP5TypeTestCase): ...@@ -768,15 +768,15 @@ class TestHR(ERP5TypeTestCase):
""" """
if not run: return if not run: return
sequence_list = SequenceList() sequence_list = SequenceList()
step_list = [ 'CreatePerson' step_list = [ 'stepCreatePerson'
, 'CreateOrganisation' , 'stepCreateOrganisation'
, 'SetOrganisationAddress' , 'stepSetOrganisationAddress'
, 'SetPersonCareer' , 'stepSetPersonCareer'
, 'CheckChangePersonAddress' , 'stepCheckChangePersonAddress'
] ]
sequence_string = ' '.join(step_list) sequence_string = ' '.join(step_list)
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self, quiet=quiet)
if __name__ == '__main__': if __name__ == '__main__':
framework() framework()
......
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