Ignore:
Timestamp:
2 Jan 2015, 10:29:24 (10 years ago)
Author:
Henrik Bettermann
Message:

Extend tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/tests/test_browser.py

    r12355 r12367  
    6060        customer['documents'].addDocument(document)
    6161        contract = createObject(u'waeup.SkeletonContract')
     62        contract.tc_dict = {'en':u'Hello World'}
    6263        customer['contracts'].addContract(contract)
    6364        self.customer = customer
     
    161162            'class_name,contract_category,contract_id,document_object,'
    162163            'history,last_product_id,product_object,product_options,'
    163             'state,title,user_id\r\n'
     164            'state,tc_dict,title,user_id\r\n'
    164165            'SkeletonContract,sample,%s,,'
    165166            '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
    166             ',,,[],created,,K1000000\r\n'
     167            ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n'
    167168            % self.contract.contract_id)
    168169        # We can reimport the file if we change the header (user_id -> customer_id)
     
    171172            'class_name,contract_category,contract_id,document_object,'
    172173            'history,last_product_id,product_object,product_options,'
    173             'state,title,user_id\r\n'
     174            'state,tc_dict,title,user_id\r\n'
    174175            'SkeletonContract,sample,%s,,'
    175176            '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
    176             ',,,[],created,,K1000000\r\n'
     177            ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n'
    177178            % self.contract.contract_id)
    178179        result = processor.doImport(
     
    180181            ['class_name','contract_category','contract_id','document_object',
    181182            'history','last_product_id','product_object','product_options',
    182             'state','title','customer_id'],
     183            'state','tc_dict','title','customer_id'],
    183184            mode='create')
    184185        num, num_fail, finished_path, failed_path = result
     
    191192            ['class_name','contract_category','contract_id','document_object',
    192193            'history','last_product_id','product_object','product_options',
    193             'state','title','customer_id'],
     194            'state','tc_dict','title','customer_id'],
    194195            mode='create')
    195196        num_succ, num_fail, finished_path, failed_path = result
     
    200201            ['class_name','contract_category','contract_id','document_object',
    201202            'history','last_product_id','product_object','product_options',
    202             'state','title','customer_id'],
     203            'state','tc_dict','title','customer_id'],
    203204            mode='update')
    204205        num_succ, num_fail, finished_path, failed_path = result
Note: See TracChangeset for help on using the changeset viewer.