Commit c593cb32 authored by Yusuke Muraoka's avatar Yusuke Muraoka

change the afterSetUp method position to reset ID tool

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33679 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b91dc4db
...@@ -506,7 +506,10 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList): ...@@ -506,7 +506,10 @@ class TestERP5SimulationPackingList(TestERP5SimulationMixin, TestPackingList):
pass pass
class TestERP5SimulationInvoice(TestERP5SimulationMixin, TestSaleInvoice): class TestERP5SimulationInvoice(TestERP5SimulationMixin, TestSaleInvoice):
pass
def afterSetUp(self):
super(TestERP5SimulationInvoice, self).afterSetUp()
self.portal.portal_ids.setLastGeneratedId(0, id_group='Accounting_Transaction_Module-Sale_Invoice_Transaction')
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
......
...@@ -2560,10 +2560,6 @@ class TestSaleInvoiceMixin(TestInvoiceMixin, ...@@ -2560,10 +2560,6 @@ class TestSaleInvoiceMixin(TestInvoiceMixin,
stepCheckNewPackingListIsPacked stepCheckNewPackingListIsPacked
""" """
def afterSetUp(self):
super(TestSaleInvoiceMixin, self).afterSetUp()
self.portal.portal_ids.setLastGeneratedId(0, id_group='Accounting_Transaction_Module-Sale_Invoice_Transaction')
class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
"""Tests for sale invoice. """Tests for sale invoice.
""" """
...@@ -2572,6 +2568,10 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -2572,6 +2568,10 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
# fix inheritance # fix inheritance
login = TestInvoiceMixin.login login = TestInvoiceMixin.login
def afterSetUp(self):
super(TestSaleInvoice, self).afterSetUp()
self.portal.portal_ids.setLastGeneratedId(0, id_group='Accounting_Transaction_Module-Sale_Invoice_Transaction')
@UnrestrictedMethod @UnrestrictedMethod
def createCategories(self): def createCategories(self):
TestPackingListMixin.createCategories(self) TestPackingListMixin.createCategories(self)
......
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