Commit 89cf316e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

mark several tests as 'expectedFailure'.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33851 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8a9ff7ea
...@@ -39,6 +39,7 @@ from Products.ERP5Type.tests.Sequence import SequenceList ...@@ -39,6 +39,7 @@ from Products.ERP5Type.tests.Sequence import SequenceList
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
from testPackingList import TestPackingList from testPackingList import TestPackingList
from testInvoice import TestSaleInvoice, TestInvoiceMixin from testInvoice import TestSaleInvoice, TestInvoiceMixin
from Products.ERP5Type.tests.backportUnittest import expectedFailure
class TestERP5SimulationMixin(TestInvoiceMixin): class TestERP5SimulationMixin(TestInvoiceMixin):
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
...@@ -505,6 +506,14 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase): ...@@ -505,6 +506,14 @@ class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase):
class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList): class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList):
pass pass
for failing_method in [
# This test does not work as it is because of the different behaviour of
# Adopt Solver.
'test_05d_SimulationChangeResourceOnOneSimulationMovementForMergedLine',
]:
setattr(TestERP5SimulationPackingList, failing_method,
expectedFailure(getattr(TestERP5SimulationPackingList, failing_method)))
class TestERP5SimulationInvoice(TestERP5SimulationMixin, TestSaleInvoice): class TestERP5SimulationInvoice(TestERP5SimulationMixin, TestSaleInvoice):
def afterSetUp(self): def afterSetUp(self):
......
...@@ -37,6 +37,7 @@ from Products.CMFCore.utils import getToolByName ...@@ -37,6 +37,7 @@ from Products.CMFCore.utils import getToolByName
from Products.ERP5.PropertySheet.TradeModelLine import (TARGET_LEVEL_MOVEMENT, from Products.ERP5.PropertySheet.TradeModelLine import (TARGET_LEVEL_MOVEMENT,
TARGET_LEVEL_DELIVERY) TARGET_LEVEL_DELIVERY)
from Products.ERP5Type.tests.utils import createZODBPythonScript from Products.ERP5Type.tests.utils import createZODBPythonScript
from Products.ERP5Type.tests.backportUnittest import expectedFailure
class TestTradeModelLineMixin(TestBPMMixin): class TestTradeModelLineMixin(TestBPMMixin):
"""Provides methods to implementations sharing similar logic to Trade Model Lines""" """Provides methods to implementations sharing similar logic to Trade Model Lines"""
...@@ -2068,6 +2069,8 @@ class TestTradeModelLine(TestTradeModelLineMixin): ...@@ -2068,6 +2069,8 @@ class TestTradeModelLine(TestTradeModelLineMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet) sequence_list.play(self, quiet=quiet)
# This test does not work without implementing an appropriate Trade Model Solver.
@expectedFailure
def test_TradeModelRuleSimulationBuildInvoiceInvoiceLineModifyDivergencyAndSolving(self, quiet=quiet): def test_TradeModelRuleSimulationBuildInvoiceInvoiceLineModifyDivergencyAndSolving(self, quiet=quiet):
"""Check that after changing invoice line invoice is properly diverged and it is possible to solve""" """Check that after changing invoice line invoice is properly diverged and it is possible to solve"""
sequence_list = SequenceList() sequence_list = SequenceList()
......
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