Commit 6f3b5a9b authored by Julien Muchembled's avatar Julien Muchembled

New testLegacySimulationProduction* running testProductionOrder* with legacy simulation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40143 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6c947ffd
......@@ -34,7 +34,7 @@ from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
from Products.ERP5.Document.BusinessTemplate import getChainByType
from zLOG import LOG
from Products.ERP5Type.tests.Sequence import SequenceList
from testOrder import TestOrderMixin
from Products.ERP5.tests.testOrder import TestOrderMixin
from DateTime import DateTime
from Products.ERP5Type.Globals import PersistentMapping
from Products.ERP5.tests.utils import newSimulationExpectedFailure
......
......@@ -37,6 +37,7 @@ from zLOG import LOG
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.CMFCore.utils import getToolByName
from testOrder import TestOrderMixin
from Products.ERP5.tests.utils import newSimulationExpectedFailure
class TestProductionOrderMixin(TestOrderMixin):
......@@ -1316,6 +1317,7 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
def getTitle(self):
return "Production Order"
@newSimulationExpectedFailure
def test_01_testProductionSimulationExpand(self, quiet=0, run=run_all_test):
"""
Test generation and update of order applied rule.
......@@ -1340,6 +1342,7 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@newSimulationExpectedFailure
def test_02_testSourcingSimulationExpand(self, quiet=0,
run=run_all_test):
"""
......@@ -1366,6 +1369,7 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@newSimulationExpectedFailure
def test_03_testIndustrialPhase(self, quiet=0, run=run_all_test):
"""
"""
......@@ -1393,6 +1397,7 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@newSimulationExpectedFailure
def test_04_testProductionSimulationBuild(self, quiet=0, run=run_all_test):
"""
Test delivery building.
......@@ -1419,6 +1424,7 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@newSimulationExpectedFailure
def test_05_testSourcingSimulationBuild(self, quiet=0,
run=run_all_test):
"""
......@@ -1431,6 +1437,7 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list.addSequenceString(self.SOURCING_ORDER_SEQUENCE)
sequence_list.play(self)
@newSimulationExpectedFailure
def test_06_testIndustrialPhase(self, quiet=0, run=run_all_test):
"""
Test delivery building.
......@@ -1570,7 +1577,8 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@newSimulationExpectedFailure
def test_08_testTransformationWithEfficiency(self, quiet=0, run=run_all_test):
"""
Test, that efficiency from transformation applies correctly
......@@ -1655,6 +1663,7 @@ class TestProductionOrder(TestProductionOrderMixin, ERP5TypeTestCase):
sequence_list.play(self)
@newSimulationExpectedFailure
def test_09_testTransformationWithVariation(self, quiet=0, run=run_all_test):
"""
Test, that variation from transformation works correctly on order
......
......@@ -33,7 +33,8 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from zLOG import LOG
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.CMFCore.utils import getToolByName
from testOrder import TestOrderMixin
from Products.ERP5.tests.testOrder import TestOrderMixin
from Products.ERP5.tests.utils import newSimulationExpectedFailure
class TestProductionOrderApparelMixin(TestOrderMixin):
......@@ -935,6 +936,7 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
def getTitle(self):
return "Production Order for Apparel"
@newSimulationExpectedFailure
def test_01_testProductionSimulationExpand(self, quiet=0, run=run_all_test):
"""
Test generation and update of order applied rule.
......@@ -959,6 +961,7 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@newSimulationExpectedFailure
def test_02_testSourcingSimulationExpand(self, quiet=0,
run=run_all_test):
"""
......@@ -985,6 +988,7 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@newSimulationExpectedFailure
def test_03_testIndustrialPhase(self, quiet=0, run=run_all_test):
"""
"""
......@@ -1012,6 +1016,7 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@newSimulationExpectedFailure
def test_04_testProductionSimulationBuild(self, quiet=0, run=run_all_test):
"""
Test delivery building.
......@@ -1038,6 +1043,7 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
@newSimulationExpectedFailure
def test_05_testSourcingSimulationBuild(self, quiet=0,
run=run_all_test):
"""
......@@ -1050,6 +1056,7 @@ class TestProductionOrderApparel(TestProductionOrderApparelMixin, ERP5TypeTestCa
sequence_list.addSequenceString(self.SOURCING_ORDER_SEQUENCE)
sequence_list.play(self)
@newSimulationExpectedFailure
def test_06_testIndustrialPhase(self, quiet=0, run=run_all_test):
"""
Test delivery building.
......
......@@ -31,8 +31,9 @@ import unittest
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from testProductionOrder import TestProductionOrderMixin
from testPackingList import TestPackingListMixin
from Products.ERP5.tests.testProductionOrder import TestProductionOrderMixin
from Products.ERP5.tests.testPackingList import TestPackingListMixin
from Products.ERP5.tests.utils import newSimulationExpectedFailure
class TestProductionPackingReportListMixin(TestProductionOrderMixin, TestPackingListMixin, \
ERP5TypeTestCase):
......@@ -401,6 +402,7 @@ class TestProductionDelivery(TestProductionPackingReportListMixin):
self.transformation_portal_type,
self.resource_portal_type,)
@newSimulationExpectedFailure
def test_01_sourcingDelivery(self, quiet=0,
run=run_all_test):
"""
......
......@@ -30,8 +30,8 @@
import unittest
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from testProductionOrderApparel import TestProductionOrderApparelMixin
from testProductionPackingList import TestProductionDelivery
from Products.ERP5.tests.testProductionOrderApparel import TestProductionOrderApparelMixin
from Products.ERP5.tests.testProductionPackingList import TestProductionDelivery
class TestProductionDeliveryApparel(TestProductionOrderApparelMixin,
TestProductionDelivery, ERP5TypeTestCase):
......
......@@ -26,6 +26,10 @@
#
##############################################################################
import sys
from Products.ERP5Legacy.tests import testLegacyRuleOrder
sys.modules['Products.ERP5.tests.testOrder'] = testLegacyRuleOrder
import unittest
import transaction
......@@ -34,7 +38,7 @@ from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
from Products.ERP5.Document.BusinessTemplate import getChainByType
from zLOG import LOG
from Products.ERP5Type.tests.Sequence import SequenceList
from testLegacyRuleOrder import TestOrderMixin
from Products.ERP5.tests.testOrder import TestOrderMixin
from DateTime import DateTime
from Products.ERP5Type.Globals import PersistentMapping
......
# -*- coding: utf-8 -*-
##############################################################################
# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly advised to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
##############################################################################
import sys
from Products.ERP5Legacy.tests import testLegacySimulationPackingList
sys.modules['Products.ERP5.tests.testPackingList'] = testLegacySimulationPackingList
test_suite_list = []
from Products.ERP5.tests.testProductionOrder import *
test_suite_list.append(test_suite)
from Products.ERP5.tests.testProductionPackingList import *
test_suite_list.append(test_suite)
from Products.ERP5Legacy.tests import Legacy_getBusinessTemplateList
Legacy_getBusinessTemplateList(TestProductionOrderMixin)
def test_suite():
suite = test_suite_list[0]()
for test_suite in test_suite_list[1:]:
suite.addTests(test_suite())
return suite
# -*- coding: utf-8 -*-
##############################################################################
# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly advised to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
##############################################################################
import sys
from Products.ERP5Legacy.tests import testLegacySimulationProduction
sys.modules['Products.ERP5.tests.testProductionOrder'] = \
sys.modules['Products.ERP5.tests.testProductionPackingList'] = \
testLegacySimulationProduction
test_suite_list = []
from Products.ERP5.tests.testProductionOrderApparel import *
test_suite_list.append(test_suite)
from Products.ERP5.tests.testProductionPackingListApparel import *
test_suite_list.append(test_suite)
from Products.ERP5Legacy.tests import Legacy_getBusinessTemplateList
Legacy_getBusinessTemplateList(TestProductionOrderApparelMixin)
def test_suite():
suite = test_suite_list[0]()
for test_suite in test_suite_list[1:]:
suite.addTests(test_suite())
return suite
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