Commit 810a7d48 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Validate projects on test because draft projects are not considered

parent f7dee0d3
...@@ -4013,9 +4013,15 @@ class TestAccountingReportsWithAnalytic(AccountingTestCase, ERP5ReportTestCase): ...@@ -4013,9 +4013,15 @@ class TestAccountingReportsWithAnalytic(AccountingTestCase, ERP5ReportTestCase):
preference._edit( preference._edit(
preferred_accounting_transaction_line_function_base_category=None, preferred_accounting_transaction_line_function_base_category=None,
preferred_accounting_transaction_line_analytic_base_category_list=()) preferred_accounting_transaction_line_analytic_base_category_list=())
for module_id in ('project_module',):
module = self.portal[module_id]
module.manage_delObjects([x for x in module.objectIds()])
self.commit() self.commit()
def testJournalAnalyticsShown(self): def testJournalAnalyticsShown(self):
self.project_1.validate()
self.project_2.validate()
self.tic()
request_form = self.portal.REQUEST.form request_form = self.portal.REQUEST.form
request_form['at_date'] = DateTime(2006, 2, 2) request_form['at_date'] = DateTime(2006, 2, 2)
request_form['section_category'] = 'group/demo_group' request_form['section_category'] = 'group/demo_group'
...@@ -4113,6 +4119,9 @@ class TestAccountingReportsWithAnalytic(AccountingTestCase, ERP5ReportTestCase): ...@@ -4113,6 +4119,9 @@ class TestAccountingReportsWithAnalytic(AccountingTestCase, ERP5ReportTestCase):
self.checkLineProperties(line_list[-1], debit=1500, credit=1500) self.checkLineProperties(line_list[-1], debit=1500, credit=1500)
def testAccountStatementAnalyticsShown(self): def testAccountStatementAnalyticsShown(self):
self.project_1.validate()
self.project_2.validate()
self.tic()
request_form = self.portal.REQUEST.form request_form = self.portal.REQUEST.form
request_form['node'] = \ request_form['node'] = \
self.portal.account_module.goods_sales.getRelativeUrl() self.portal.account_module.goods_sales.getRelativeUrl()
...@@ -4203,6 +4212,9 @@ class TestAccountingReportsWithAnalytic(AccountingTestCase, ERP5ReportTestCase): ...@@ -4203,6 +4212,9 @@ class TestAccountingReportsWithAnalytic(AccountingTestCase, ERP5ReportTestCase):
self.checkLineProperties(line_list[-1], debit_price=0, credit_price=1500) self.checkLineProperties(line_list[-1], debit_price=0, credit_price=1500)
def testGeneralLedgerAnalyticsShown(self): def testGeneralLedgerAnalyticsShown(self):
self.project_1.validate()
self.project_2.validate()
self.tic()
request_form = self.portal.REQUEST.form request_form = self.portal.REQUEST.form
request_form['from_date'] = DateTime(2006, 1, 1) request_form['from_date'] = DateTime(2006, 1, 1)
request_form['at_date'] = DateTime(2006, 12, 31) request_form['at_date'] = DateTime(2006, 12, 31)
......
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