Ignore:
Timestamp:
31 Dec 2014, 16:16:32 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust tests.

Location:
main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton
Files:
2 edited

Legend:

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

    r12335 r12354  
    5656        customer['documents'].addDocument(document)
    5757        contract = createObject(u'waeup.SkeletonContract')
    58         contract .title = u'My first contract'
    5958        customer['contracts'].addContract(contract)
    6059        self.customer = customer
     
    161160            'SkeletonContract,sample,%s,,'
    162161            '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
    163             ',,,[],created,My first contract,K1000000\r\n'
     162            ',,,[],created,,K1000000\r\n'
    164163            % self.contract.contract_id)
    165164        # We can reimport the file if we change the header (user_id -> customer_id)
     
    171170            'SkeletonContract,sample,%s,,'
    172171            '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
    173             ',,,[],created,My first contract,K1000000\r\n'
     172            ',,,[],created,,K1000000\r\n'
    174173            % self.contract.contract_id)
    175174        result = processor.doImport(
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/products/tests/test_browser.py

    r12335 r12354  
    5252        result = open(self.outfile, 'rb').read()
    5353        self.assertEqual(result,
    54             'contract_category,options,product_id,title,users_with_local_roles\r\n'
    55             'license,[],LIC,Unnamed,[]\r\n')
     54            'contract_category,contract_title,options,product_id,title,users_with_local_roles\r\n'
     55            'license,,[],LIC,Unnamed,[]\r\n')
    5656        # We can import the same file.
    5757        processor = SkeletonProductProcessor()
    5858        result = processor.doImport(
    5959            self.outfile,
    60             ['contract_category','options,', 'product_id','title',
    61             'users_with_local_roles'],
     60            ['contract_category','contract_title', 'options,', 'product_id',
     61            'title','users_with_local_roles'],
    6262            mode='create')
    6363        num, num_fail, finished_path, failed_path = result
     
    6969        result = processor.doImport(
    7070            self.outfile,
    71             ['contract_category','options','product_id','title',
    72             'users_with_local_roles'],
     71            ['contract_category','contract_title', 'options,', 'product_id',
     72            'title','users_with_local_roles'],
    7373            mode='create')
    7474        num, num_fail, finished_path, failed_path = result
     
    7878        result = processor.doImport(
    7979            self.outfile,
    80             ['contract_category','options','product_id','title',
    81             'users_with_local_roles'],
     80            ['contract_category','contract_title', 'options,', 'product_id',
     81            'title','users_with_local_roles'],
    8282            mode='update')
    8383        num, num_fail, finished_path, failed_path = result
Note: See TracChangeset for help on using the changeset viewer.