Commit 438237e5 authored by Julien Muchembled's avatar Julien Muchembled

Do not clear activities unconditionally at the beginning of each test

Clean up of activities is already handled by ERP5TypeTestCase.tearDown

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39997 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 134cf080
......@@ -59,14 +59,6 @@ class TestOrderBuilderMixin(TestOrderMixin):
max_delay = 0.0
min_flow = 0.0
def stepClearActivities(self, sequence=None, sequence_list=None,
**kw):
"""
Clear activity tables
"""
activity_tool = self.getPortal().portal_activities
activity_tool.manageClearActivities(keep=0)
def stepSetMaxDelayOnResource(self, sequence=None, sequence_list=None,
**kw):
"""
......@@ -364,7 +356,6 @@ class TestOrderBuilder(TestOrderBuilderMixin, ERP5TypeTestCase):
run_all_test = 1
common_sequence_string = '\
ClearActivities \
CreateOrganisation \
CreateNotVariatedResource \
SetMaxDelayOnResource \
......@@ -407,7 +398,6 @@ class TestOrderBuilder(TestOrderBuilderMixin, ERP5TypeTestCase):
if not run: return
sequence_string = '\
ClearActivities \
CreateOrganisation \
CreateVariatedResource \
SetMaxDelayOnResource \
......
......@@ -177,14 +177,6 @@ class TestProductionOrderMixin(TestOrderMixin):
resource_list.append(resource)
sequence.edit( resource_list = resource_list )
def stepClearActivities(self, sequence=None, sequence_list=None,
**kw):
"""
Clear activity tables
"""
activity_tool = self.getPortal().portal_activities
activity_tool.manageClearActivities(keep=0)
def stepCreateProductionOrganisation1(self, sequence=None, sequence_list=None,
**kw):
"""
......@@ -1297,7 +1289,6 @@ class TestProductionOrderMixin(TestOrderMixin):
self.assertEquals(0, len(supply_movement.objectValues()))
SOURCING_ORDER_SEQUENCE = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateSupplyOrganisation1 \
CreateSourcingSC \
......@@ -1333,7 +1324,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionSC \
CreateNotVariatedResource \
......@@ -1359,7 +1349,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateSupplyOrganisation1 \
CreateSourcingSC \
......@@ -1384,7 +1373,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionOrganisation2 \
CreateSupplyOrganisation1 \
......@@ -1414,7 +1402,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionSC \
CreateNotVariatedResource \
......@@ -1453,7 +1440,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionOrganisation2 \
CreateSupplyOrganisation1 \
......@@ -1508,7 +1494,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
if not run: return
bootstrap_sequence_string = '\
ClearActivities \
CreateNotVariatedResource \
CreateOrder \
'
......@@ -1593,7 +1578,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
if not run: return
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateSupplyOrganisation1 \
CreateSourcingSC \
......@@ -1725,7 +1709,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
}
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateSupplyOrganisation1 \
CreateSourcingSC \
......@@ -1770,7 +1753,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
if not run: return
sequence_list = SequenceList()
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionSC \
CopyPasteSupplyChain \
......@@ -1848,7 +1830,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
if not run: return
sequence_list = SequenceList()
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionSC \
CreateEmptySC \
......
......@@ -72,14 +72,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
portal_type='Category',
id=category_id)
def stepClearActivities(self, sequence=None, sequence_list=None,
**kw):
"""
Clear activity tables
"""
activity_tool = self.getPortal().portal_activities
activity_tool.manageClearActivities(keep=0)
def stepCreateProductionOrganisation1(self, sequence=None, sequence_list=None,
**kw):
"""
......@@ -916,7 +908,6 @@ class TestProductionOrderApparelMixin(TestOrderMixin):
self.assertEquals(0, len(supply_movement.objectValues()))
SOURCING_ORDER_SEQUENCE = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateSupplyOrganisation1 \
CreateSourcingSC \
......@@ -952,7 +943,6 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionSC \
CreateVariatedResource \
......@@ -978,7 +968,6 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateSupplyOrganisation1 \
CreateSourcingSC \
......@@ -1003,7 +992,6 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionOrganisation2 \
CreateSupplyOrganisation1 \
......@@ -1033,7 +1021,6 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionSC \
CreateVariatedResource \
......@@ -1072,7 +1059,6 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionOrganisation2 \
CreateSupplyOrganisation1 \
......@@ -1127,7 +1113,6 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
if not run: return
bootstrap_sequence_string = '\
ClearActivities \
CreateNotVariatedResource \
CreateOrder \
'
......@@ -1224,7 +1209,6 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
if not run: return
sequence_list = SequenceList()
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionSC \
CopyPasteSupplyChain \
......@@ -1302,7 +1286,6 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
if not run: return
sequence_list = SequenceList()
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionSC \
CreateEmptySC \
......
......@@ -177,14 +177,6 @@ class TestProductionOrderMixin(TestOrderMixin):
resource_list.append(resource)
sequence.edit( resource_list = resource_list )
def stepClearActivities(self, sequence=None, sequence_list=None,
**kw):
"""
Clear activity tables
"""
activity_tool = self.getPortal().portal_activities
activity_tool.manageClearActivities(keep=0)
def stepCreateProductionOrganisation1(self, sequence=None, sequence_list=None,
**kw):
"""
......@@ -1281,7 +1273,6 @@ class TestProductionOrderMixin(TestOrderMixin):
self.assertEquals(0, len(supply_movement.objectValues()))
SOURCING_ORDER_SEQUENCE = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateSupplyOrganisation1 \
CreateSourcingSC \
......@@ -1317,7 +1308,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionSC \
CreateNotVariatedResource \
......@@ -1343,7 +1333,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateSupplyOrganisation1 \
CreateSourcingSC \
......@@ -1368,7 +1357,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionOrganisation2 \
CreateSupplyOrganisation1 \
......@@ -1398,7 +1386,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionSC \
CreateNotVariatedResource \
......@@ -1437,7 +1424,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list = SequenceList()
# Test when order is
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionOrganisation2 \
CreateSupplyOrganisation1 \
......@@ -1492,7 +1478,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
if not run: return
bootstrap_sequence_string = '\
ClearActivities \
CreateNotVariatedResource \
CreateOrder \
'
......@@ -1577,7 +1562,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
if not run: return
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateSupplyOrganisation1 \
CreateSourcingSC \
......@@ -1709,7 +1693,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
}
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateSupplyOrganisation1 \
CreateSourcingSC \
......@@ -1754,7 +1737,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
if not run: return
sequence_list = SequenceList()
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionSC \
CopyPasteSupplyChain \
......@@ -1832,7 +1814,6 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
if not run: return
sequence_list = SequenceList()
sequence_string = '\
ClearActivities \
CreateProductionOrganisation1 \
CreateProductionSC \
CreateEmptySC \
......
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