From fdd153e0c9f7ef068e9ee50a38bcbbe2ad47a82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 7 Jun 2015 18:17:08 +0200 Subject: [PATCH] [FIX] mis_builder: fix test --- mis_builder/tests/test_mis_builder.py | 43 ++++++++++++--------------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/mis_builder/tests/test_mis_builder.py b/mis_builder/tests/test_mis_builder.py index 8bb26180..d36e936b 100644 --- a/mis_builder/tests/test_mis_builder.py +++ b/mis_builder/tests/test_mis_builder.py @@ -65,29 +65,24 @@ 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'), - 'style': None, - 'suffix': False, - 'expr': 'len(test)', - 'val_c': 'total_test = len(test)', - 'val': 0, - 'val_r': u'0\xa0', - 'is_percentage': False, - 'dp': 0, - 'drilldown': False}] - } - )]), - 'header': OrderedDict([('', - {'kpi_name': '', - 'default_style': '', - 'cols': [{'date': '2014-07-31', - 'name': u'today'}] - })]) + 'cols': [{'period_id': self.ref('mis_builder.' + 'mis_report_instance_' + 'period_test'), + 'style': None, + 'suffix': False, + 'expr': 'len(test)', + 'val_c': 'total_test = len(test)', + 'val': 0, + 'val_r': u'0\xa0', + 'is_percentage': False, + 'dp': 0, + 'drilldown': False}] + }], + 'header': + [{'kpi_name': '', + 'cols': [{'date': '07/31/2014', + 'name': u'today'}] + }], }, data)