From 5fec1d3d5428934803462b2357d6c3c0a9f17b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 24 Apr 2009 14:51:15 +0000 Subject: [PATCH] report sections titles changed in the GL, they now use Account_getFormattedTitle git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26622 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testAccountingReports.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/product/ERP5/tests/testAccountingReports.py b/product/ERP5/tests/testAccountingReports.py index 202c0fa1ea..afd5e7ec97 100644 --- a/product/ERP5/tests/testAccountingReports.py +++ b/product/ERP5/tests/testAccountingReports.py @@ -2189,7 +2189,7 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase): 'AccountModule_viewGeneralLedgerReport') self.assertEquals(6, len(report_section_list)) - self.assertEquals('40: Payable (Client 1)', + self.assertEquals('40 - Payable (Client 1)', report_section_list[0].getTitle()) line_list = self.getListBoxLineList(report_section_list[0]) data_line_list = [l for l in line_list if l.isDataLine()] @@ -2244,7 +2244,7 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase): Movement_getMirrorSectionTitle=None, debit=200, credit=100, ) - self.assertEquals('41: Receivable (Client 1)', + self.assertEquals('41 - Receivable (Client 1)', report_section_list[1].getTitle()) line_list = self.getListBoxLineList(report_section_list[1]) data_line_list = [l for l in line_list if l.isDataLine()] @@ -2305,7 +2305,7 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase): Movement_getMirrorSectionTitle=None, debit=1800, credit=200, ) - self.assertEquals('41: Receivable (Client 2)', + self.assertEquals('41 - Receivable (Client 2)', report_section_list[2].getTitle()) line_list = self.getListBoxLineList(report_section_list[2]) data_line_list = [l for l in line_list if l.isDataLine()] @@ -2322,7 +2322,7 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase): self.failUnless(line_list[-1].isStatLine()) self.checkLineProperties(line_list[-1], debit=400, credit=0, ) - self.assertEquals('41: Receivable (John Smith)', + self.assertEquals('41 - Receivable (John Smith)', report_section_list[3].getTitle()) line_list = self.getListBoxLineList(report_section_list[3]) data_line_list = [l for l in line_list if l.isDataLine()] @@ -2339,7 +2339,7 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase): self.failUnless(line_list[-1].isStatLine()) self.checkLineProperties(line_list[-1], debit=500, credit=0, ) - self.assertEquals('5: Bank (Bank1)', + self.assertEquals('5 - Bank (Bank1)', report_section_list[4].getTitle()) line_list = self.getListBoxLineList(report_section_list[4]) data_line_list = [l for l in line_list if l.isDataLine()] -- 2.30.9