Commit 989588dd authored by Aurel's avatar Aurel

revert changes done in old old test instead of intermediate ones


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37715 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 742f3789
...@@ -32,7 +32,7 @@ import transaction ...@@ -32,7 +32,7 @@ import transaction
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from zLOG import LOG from zLOG import LOG
from Products.ERP5Type.tests.Sequence import SequenceList from Products.ERP5Type.tests.Sequence import SequenceList
from testLegacyRuleOrder import TestOrderMixin from testLegacyOrder import TestOrderMixin
from DateTime import DateTime from DateTime import DateTime
class TestPackingListMixin(TestOrderMixin): class TestPackingListMixin(TestOrderMixin):
...@@ -152,22 +152,6 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -152,22 +152,6 @@ class TestPackingListMixin(TestOrderMixin):
""" """
return 1 return 1
def validateRules(self):
"""
try to validate all rules in rule_tool.
"""
rule_tool = self.getRuleTool()
for rule in rule_tool.contentValues(
portal_type=rule_tool.getPortalRuleTypeList()):
if rule.getValidationState() != 'validated':
rule.validate()
for rule in rule_tool.contentValues(
portal_type=rule_tool.getPortalRuleTypeList()):
if rule.getValidationState() == 'validated' and rule.getReference() == 'default_accounting_transaction_rule':
rule.invalidate()
def stepCheckOrderPackingList(self, sequence=None, sequence_list=None, **kw): def stepCheckOrderPackingList(self, sequence=None, sequence_list=None, **kw):
""" """
Test if packing list is matching order Test if packing list is matching order
......
...@@ -36,7 +36,7 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase ...@@ -36,7 +36,7 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from zLOG import LOG from zLOG import LOG
from Products.ERP5Type.tests.Sequence import SequenceList from Products.ERP5Type.tests.Sequence import SequenceList
from Products.CMFCore.utils import getToolByName from Products.CMFCore.utils import getToolByName
from testLegacyRuleOrder import TestOrderMixin from testLegacyOrder import TestOrderMixin
class TestProductionOrderMixin(TestOrderMixin): class TestProductionOrderMixin(TestOrderMixin):
......
...@@ -34,7 +34,7 @@ from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod ...@@ -34,7 +34,7 @@ from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
from Products.ERP5Type.Document.BusinessTemplate import getChainByType from Products.ERP5Type.Document.BusinessTemplate import getChainByType
from zLOG import LOG from zLOG import LOG
from Products.ERP5Type.tests.Sequence import SequenceList from Products.ERP5Type.tests.Sequence import SequenceList
from testOrder import TestOrderMixin from testLegacyRuleOrder import TestOrderMixin
from DateTime import DateTime from DateTime import DateTime
from Products.ERP5Type.Globals import PersistentMapping from Products.ERP5Type.Globals import PersistentMapping
......
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