Commit 2d6db3d7 authored by Julien Muchembled's avatar Julien Muchembled

Update testTradeReports

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28826 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3e9ba335
...@@ -720,15 +720,16 @@ class TestTradeReports(ERP5ReportTestCase): ...@@ -720,15 +720,16 @@ class TestTradeReports(ERP5ReportTestCase):
# test columns values # test columns values
line = data_line_list[0] line = data_line_list[0]
self.assertEquals(line.column_id_list, self.assertEqual(line.column_id_list, ['resource_title',
['resource_title', 'resource_reference', 'variation_text', 'resource_reference',
'inventory', 'quantity_unit']) 'variation_category_item_list',
'inventory',
'quantity_unit'])
self.checkLineProperties( self.checkLineProperties(
data_line_list[0], data_line_list[0],
resource_title='product_A', resource_title='product_A',
resource_reference='ref 2', resource_reference='ref 2',
variation_text='', variation_category_item_list=[],
inventory=11, inventory=11,
quantity_unit='G') quantity_unit='G')
...@@ -749,28 +750,28 @@ class TestTradeReports(ERP5ReportTestCase): ...@@ -749,28 +750,28 @@ class TestTradeReports(ERP5ReportTestCase):
data_line_list[0], data_line_list[0],
resource_title='product_B', resource_title='product_B',
resource_reference='ref 1', resource_reference='ref 1',
variation_text='', variation_category_item_list=[],
inventory=33, inventory=33,
quantity_unit='Kg') quantity_unit='Kg')
self.checkLineProperties( self.checkLineProperties(
data_line_list[1], data_line_list[1],
resource_title='product_A', resource_title='product_A',
resource_reference='ref 2', resource_reference='ref 2',
variation_text='', variation_category_item_list=[],
inventory=22, inventory=22,
quantity_unit='G') quantity_unit='G')
self.checkLineProperties( self.checkLineProperties(
data_line_list[2], data_line_list[2],
resource_title='variated product', resource_title='variated product',
resource_reference='ref 3', resource_reference='ref 3',
variation_text='colour/colour1', variation_category_item_list=['colour1'],
inventory=66, inventory=66,
quantity_unit='') quantity_unit='')
self.checkLineProperties( self.checkLineProperties(
data_line_list[3], data_line_list[3],
resource_title='variated product', resource_title='variated product',
resource_reference='ref 3', resource_reference='ref 3',
variation_text='colour/colour2', variation_category_item_list=['colour2'],
inventory=66, inventory=66,
quantity_unit='') quantity_unit='')
...@@ -871,14 +872,14 @@ class TestTradeReports(ERP5ReportTestCase): ...@@ -871,14 +872,14 @@ class TestTradeReports(ERP5ReportTestCase):
data_line_list[0], data_line_list[0],
resource_title='product_B', resource_title='product_B',
resource_reference='ref 1', resource_reference='ref 1',
variation_text='', variation_category_item_list=[],
inventory=-33, inventory=-33,
quantity_unit='Kg') quantity_unit='Kg')
self.checkLineProperties( self.checkLineProperties(
data_line_list[1], data_line_list[1],
resource_title='product_A', resource_title='product_A',
resource_reference='ref 2', resource_reference='ref 2',
variation_text='', variation_category_item_list=[],
inventory=0, inventory=0,
quantity_unit='G') quantity_unit='G')
################################ ################################
...@@ -901,21 +902,21 @@ class TestTradeReports(ERP5ReportTestCase): ...@@ -901,21 +902,21 @@ class TestTradeReports(ERP5ReportTestCase):
data_line_list[0], data_line_list[0],
resource_title='product_A', resource_title='product_A',
resource_reference='ref 2', resource_reference='ref 2',
variation_text='', variation_category_item_list=[],
inventory=0, inventory=0,
quantity_unit='G') quantity_unit='G')
self.checkLineProperties( self.checkLineProperties(
data_line_list[1], data_line_list[1],
resource_title='variated product', resource_title='variated product',
resource_reference='ref 3', resource_reference='ref 3',
variation_text='colour/colour1', variation_category_item_list=['colour1'],
inventory=66, inventory=66,
quantity_unit='') quantity_unit='')
self.checkLineProperties( self.checkLineProperties(
data_line_list[2], data_line_list[2],
resource_title='variated product', resource_title='variated product',
resource_reference='ref 3', resource_reference='ref 3',
variation_text='colour/colour2', variation_category_item_list=['colour2'],
inventory=66, inventory=66,
quantity_unit='') quantity_unit='')
################################ ################################
...@@ -938,21 +939,21 @@ class TestTradeReports(ERP5ReportTestCase): ...@@ -938,21 +939,21 @@ class TestTradeReports(ERP5ReportTestCase):
data_line_list[0], data_line_list[0],
resource_title='product_B', resource_title='product_B',
resource_reference='ref 1', resource_reference='ref 1',
variation_text='', variation_category_item_list=[],
inventory=-33, inventory=-33,
quantity_unit='Kg') quantity_unit='Kg')
self.checkLineProperties( self.checkLineProperties(
data_line_list[1], data_line_list[1],
resource_title='variated product', resource_title='variated product',
resource_reference='ref 3', resource_reference='ref 3',
variation_text='colour/colour1', variation_category_item_list=['colour1'],
inventory=66, inventory=66,
quantity_unit='') quantity_unit='')
self.checkLineProperties( self.checkLineProperties(
data_line_list[2], data_line_list[2],
resource_title='variated product', resource_title='variated product',
resource_reference='ref 3', resource_reference='ref 3',
variation_text='colour/colour2', variation_category_item_list=['colour2'],
inventory=66, inventory=66,
quantity_unit='') quantity_unit='')
...@@ -978,7 +979,7 @@ class TestTradeReports(ERP5ReportTestCase): ...@@ -978,7 +979,7 @@ class TestTradeReports(ERP5ReportTestCase):
data_line_list[0], data_line_list[0],
resource_title='product_A', resource_title='product_A',
resource_reference='ref 2', resource_reference='ref 2',
variation_text='', variation_category_item_list=[],
inventory=0, inventory=0,
quantity_unit='G') quantity_unit='G')
######################################## ########################################
...@@ -1001,7 +1002,7 @@ class TestTradeReports(ERP5ReportTestCase): ...@@ -1001,7 +1002,7 @@ class TestTradeReports(ERP5ReportTestCase):
data_line_list[0], data_line_list[0],
resource_title='product_B', resource_title='product_B',
resource_reference='ref 1', resource_reference='ref 1',
variation_text='', variation_category_item_list=[],
inventory=-33, inventory=-33,
quantity_unit='Kg') quantity_unit='Kg')
######################################## ########################################
...@@ -1024,14 +1025,14 @@ class TestTradeReports(ERP5ReportTestCase): ...@@ -1024,14 +1025,14 @@ class TestTradeReports(ERP5ReportTestCase):
data_line_list[0], data_line_list[0],
resource_title='variated product', resource_title='variated product',
resource_reference='ref 3', resource_reference='ref 3',
variation_text='colour/colour1', variation_category_item_list=['colour1'],
inventory=66, inventory=66,
quantity_unit='') quantity_unit='')
self.checkLineProperties( self.checkLineProperties(
data_line_list[1], data_line_list[1],
resource_title='variated product', resource_title='variated product',
resource_reference='ref 3', resource_reference='ref 3',
variation_text='colour/colour2', variation_category_item_list=['colour2'],
inventory=66, inventory=66,
quantity_unit='') quantity_unit='')
################################################ ################################################
......
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