Ignore:
Timestamp:
28 Nov 2014, 08:24:49 (10 years ago)
Author:
Henrik Bettermann
Message:

Add application_category attribute to products.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests/sample_product_data.csv

    r12073 r12078  
    1 product_id,title
    2 ABC,ABC title
    3 CDE,CDE title
    4 EFG,EFG title
    5 ABC,Duplicate product
     1product_id,title,application_category
     2ABC,ABC title,license
     3CDE,CDE title,license
     4EFG,EFG title,license
     5ABC,Duplicate product,license
  • main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests/test_batching.py

    r12077 r12078  
    164164        self.assertTrue(
    165165            'INFO - system - Product Processor - sample_product_data - '
    166             'EFG - updated: product_id=EFG, title=EFG title\n'
     166            'EFG - updated: product_id=EFG, title=EFG title, '
     167            'application_category=license\n'
    167168            in logcontent)
    168169        failcontent = open(fail_file).read()
  • main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests/test_export.py

    r12077 r12078  
    6262        result = open(self.outfile, 'rb').read()
    6363        self.assertTrue(
    64             'product_id,title,users_with_local_roles\r\nLIC,Unnamed,"'
    65             '[{\'user_name\': u\'john\', \'local_role\': u\'johnsrole\'}]"\r\n'
     64            'application_category,product_id,title,users_with_local_roles\r\n'
     65            'license,LIC,Unnamed,"[{\'user_name\': u\'john\', \'local_role\': '
     66            'u\'johnsrole\'}]"\r\n'
    6667            in result
    6768            )
     
    7475        result = open(self.outfile, 'rb').read()
    7576        self.assertTrue(
    76             'product_id,title,users_with_local_roles\r\nLIC,Unnamed,"'
    77             '[{\'user_name\': u\'john\', \'local_role\': u\'johnsrole\'}]"\r\n'
     77            'application_category,product_id,title,users_with_local_roles\r\n'
     78            'license,LIC,Unnamed,"[{\'user_name\': u\'john\', \'local_role\': '
     79            'u\'johnsrole\'}]"\r\n'
    7880            in result
    7981            )
Note: See TracChangeset for help on using the changeset viewer.