From cbdc4061be7c30cc3d1d060beee19cbcc7d91fb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 5 Apr 2007 13:33:28 +0000 Subject: [PATCH] Set different dates on created transactions, because we sort on dates and we have to be sure of the order. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13977 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testAccountingReports.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/product/ERP5/tests/testAccountingReports.py b/product/ERP5/tests/testAccountingReports.py index 008d4251fe..f612fbfea4 100644 --- a/product/ERP5/tests/testAccountingReports.py +++ b/product/ERP5/tests/testAccountingReports.py @@ -116,7 +116,11 @@ class TestAccountingReports(AccountingTestCase): title='Second One', simulation_state='delivered', destination_section_value=self.organisation_module.client_2, - start_date=DateTime(2006, 2, 2), + start_date=DateTime(2006, 2, 2, 1, 1), # XXX we have to force + # different values of hour minutes, because /for now/ sorting is + # done on date, uid. Sorting on [source|destination]_reference + # would be too heavy, and we just want a sort on date, with a + # stable order (hence the cheap sort on uid) lines=(dict(source_value=account_module.receivable, source_debit=239.20), dict(source_value=account_module.collected_vat, @@ -221,7 +225,7 @@ class TestAccountingReports(AccountingTestCase): # Second Transaction self.checkLineProperties(data_line_list[3], specific_reference=second.getSourceReference(), - date=DateTime(2006, 2, 2), + date=DateTime(2006, 2, 2, 1, 1), title='Second One', node_title='41', mirror_section_title='Client 2', -- 2.30.9