Browse Source

[FIX][mis_builder] Fix test suite.

pull/189/head
Adrien Peiffer (ACSONE) 9 years ago
committed by Stéphane Bidoul
parent
commit
38075ac441
  1. 4
      mis_builder/tests/mis.report.instance.csv
  2. 2
      mis_builder/tests/mis.report.query.csv
  3. 3
      mis_builder/tests/test_mis_builder.py

4
mis_builder/tests/mis.report.instance.csv

@ -1,2 +1,2 @@
"id","date","description","name","period_ids/id","report_id/id","root_account/id"
"mis_report_instance_test","2014-07-31","","Test-report-instance without company","mis_report_instance_period_test","mis_report_test","account.chart0"
"id","date","description","name","period_ids/id","report_id/id"
"mis_report_instance_test","2014-07-31","","Test-report-instance without company","mis_report_instance_period_test","mis_report_test"

2
mis_builder/tests/mis.report.query.csv

@ -1,2 +1,2 @@
"id","date_field/id","domain","field_ids/id","model_id/id","name" "id","date_field/id","domain","field_ids/id","model_id/id","name"
"mis_report_query_test","account.field_account_analytic_balance_date1","","account.field_account_analytic_balance_empty_acc","account.model_account_analytic_balance","test"
"mis_report_query_test","analytic.field_account_analytic_line_date","","analytic.field_account_analytic_line_amount","analytic.model_account_analytic_line","test"

3
mis_builder/tests/test_mis_builder.py

@ -52,8 +52,7 @@ class test_mis_builder(common.TransactionCase):
'The converted date time convert must contains hour') 'The converted date time convert must contains hour')
def test_fetch_query(self): def test_fetch_query(self):
# create a report on a model without company_id field :
# account.analytic.balance
# create a report on account.analytic.line
data = self.registry('mis.report.instance').compute( data = self.registry('mis.report.instance').compute(
self.cr, self.uid, self.cr, self.uid,
self.ref('mis_builder.mis_report_instance_test')) self.ref('mis_builder.mis_report_instance_test'))

Loading…
Cancel
Save