Browse Source

[FIX] mis_builder: fix test

pull/86/head
Stéphane Bidoul 10 years ago
parent
commit
4c72d8637c
  1. 23
      mis_builder/tests/test_mis_builder.py

23
mis_builder/tests/test_mis_builder.py

@ -65,14 +65,11 @@ class test_mis_builder(common.TransactionCase):
self.ref('mis_builder.mis_report_instance_test'))
self.assertDictContainsSubset(
{'content':
OrderedDict([(
u'total_test',
{'kpi_name': u'total test',
[{'kpi_name': u'total test',
'default_style': False,
'cols': [{
'period_id':
self.ref(
'mis_builder.mis_report_instance_period_test'),
'cols': [{'period_id': self.ref('mis_builder.'
'mis_report_instance_'
'period_test'),
'style': None,
'suffix': False,
'expr': 'len(test)',
@ -82,12 +79,10 @@ class test_mis_builder(common.TransactionCase):
'is_percentage': False,
'dp': 0,
'drilldown': False}]
}
)]),
'header': OrderedDict([('',
{'kpi_name': '',
'default_style': '',
'cols': [{'date': '2014-07-31',
}],
'header':
[{'kpi_name': '',
'cols': [{'date': '07/31/2014',
'name': u'today'}]
})])
}],
}, data)
Loading…
Cancel
Save