Ignore:
Timestamp:
3 Jan 2015, 21:42:26 (10 years ago)
Author:
Henrik Bettermann
Message:

Fix tests.

File:
1 edited

Legend:

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

    r12384 r12390  
    5050    layer = FunctionalLayer
    5151
     52    def setup_customizable_params(self):
     53        self._contract_category = u'license'
     54        return
     55
    5256    def setup_for_export(self):
    5357        customer = createObject(u'waeup.Customer')
     
    213217            'history,last_product_id,product_object,product_options,'
    214218            'state,tc_dict,title,user_id\r\n'
    215             'PCNContract,sample,%s,,'
     219            'PCNContract,license,%s,,'
    216220            '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
    217221            ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n'
     
    223227            'history,last_product_id,product_object,product_options,'
    224228            'state,tc_dict,title,user_id\r\n'
    225             'PCNContract,sample,%s,,'
     229            'PCNContract,license,%s,,'
    226230            '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
    227231            ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n'
     
    262266
    263267    layer = FunctionalLayer
     268
     269    def setup_customizable_params(self):
     270        self._contract_category = u'license'
     271        self._document_factory = 'waeup.PCNCustomerPDFDocument'
     272        self._contract_factory = 'waeup.PCNContract'
     273        return
    264274
    265275    def test_manage_upload_pdf_file(self):
     
    282292            name='upload_pdfscanmanageupload').click()
    283293        self.assertTrue(
    284             'pdf file extension expected' in self.browser.contents)
     294            'pdf file format expected' in self.browser.contents)
    285295        ctrl = self.browser.getControl(name='pdfscanmanageupload')
    286296        file_ctrl = ctrl.mech_control
     
    309319    layer = FunctionalLayer
    310320
     321    def setup_customizable_params(self):
     322        self._contract_category = u'license'
     323        self._document_factory = 'waeup.PCNCustomerPDFDocument'
     324        self._contract_factory = 'waeup.PCNContract'
     325        return
     326
    311327    def test_view_slips(self):
    312328        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
Note: See TracChangeset for help on using the changeset viewer.