Browse Source

[FIX] mis_builder: fix test

pull/90/head
Stéphane Bidoul 10 years ago
parent
commit
fdd153e0c9
  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.ref('mis_builder.mis_report_instance_test'))
self.assertDictContainsSubset( self.assertDictContainsSubset(
{'content': {'content':
OrderedDict([(
u'total_test',
{'kpi_name': u'total test',
[{'kpi_name': u'total test',
'default_style': False, '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, 'style': None,
'suffix': False, 'suffix': False,
'expr': 'len(test)', 'expr': 'len(test)',
@ -82,12 +79,10 @@ class test_mis_builder(common.TransactionCase):
'is_percentage': False, 'is_percentage': False,
'dp': 0, 'dp': 0,
'drilldown': False}] 'drilldown': False}]
}
)]),
'header': OrderedDict([('',
{'kpi_name': '',
'default_style': '',
'cols': [{'date': '2014-07-31',
}],
'header':
[{'kpi_name': '',
'cols': [{'date': '07/31/2014',
'name': u'today'}] 'name': u'today'}]
})])
}],
}, data) }, data)
Loading…
Cancel
Save