From ac947f596a12e873afb901471524749274a0e861 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Thu, 8 Jan 2009 09:03:15 +0000 Subject: [PATCH] Remove stepCheckReferenceIsIncreasedEveryDay test: it fails for 10 days on every new year since it moves counter dates 10 days in the past and expects their reference to be increasing. testERP5BankingCounterDate tests that behaviour more accurately. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25036 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../testERP5BankingAvailableInventory.py | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/product/ERP5Banking/tests/testERP5BankingAvailableInventory.py b/product/ERP5Banking/tests/testERP5BankingAvailableInventory.py index 5cdb107da7..9ea70d9b6d 100755 --- a/product/ERP5Banking/tests/testERP5BankingAvailableInventory.py +++ b/product/ERP5Banking/tests/testERP5BankingAvailableInventory.py @@ -249,34 +249,6 @@ class TestERP5BankingAvailableInventory(TestERP5BankingCheckPaymentMixin, self.assertEqual(self.currency_1.getAvailableInventory(payment=self.bank_account_1.getRelativeUrl()), 30000) self.assertEqual(self.currency_1.getFutureInventory(payment=self.bank_account_1.getRelativeUrl()), 30000) - def stepCheckReferenceIsIncreasedEveryDay(self, sequence=None, sequence_list=None, **kwd): - """ - make sure the reference is increasing - """ - counter_date = self.counter_date_1 - counter_date.setStartDate(self.date-10) - self.assertEquals(counter_date.getReference(),'1') - counter_date.close() - get_transaction().commit() - self.tic() - self.openCounterDate(site=self.paris, id='counter_date_3', force_check=1) - counter_date = self.counter_date_3 - self.assertEquals(counter_date.getReference(),'2') - counter_date.close() - counter_date.setStartDate(self.date-9) - get_transaction().commit() - self.tic() - self.openCounterDate(site=self.paris, id='counter_date_4', force_check=1) - counter_date = self.counter_date_4 - self.assertEquals(counter_date.getReference(),'3') - counter_date.close() - counter_date.setStartDate(self.date-8) - get_transaction().commit() - self.tic() - self.openCounterDate(site=self.paris, id='counter_date_5', force_check=1) - counter_date = self.counter_date_5 - self.assertEquals(counter_date.getReference(),'4') - def stepSetInventoryInSortVault(self, sequence=None, sequence_list=None, **kwd): """ put some banknotes into the vault used for sorting @@ -357,7 +329,6 @@ class TestERP5BankingAvailableInventory(TestERP5BankingCheckPaymentMixin, 'CheckBadStockBeforeClosingDate ' \ 'ResetInventoryInVaultForeignCurrency Tic ' \ 'CheckRightStockBeforeClosingDate ' \ - 'CheckReferenceIsIncreasedEveryDay ' \ 'Tic ' \ 'CheckOpenCounterDateTwiceWithOtherDateFail Tic ' sequence_list.addSequenceString(sequence_string) -- 2.30.9