Ignore:
Timestamp:
18 Jan 2015, 16:06:01 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename contract category.

File:
1 edited

Legend:

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

    r12484 r12488  
    5151
    5252    def setup_customizable_params(self):
    53         self._contract_category = u'license'
     53        self._contract_category = u'ron'
    5454        return
    5555
     
    214214        result = open(self.outfile, 'rb').read()
    215215        self.assertMatches(result,
    216             'class_name,contract_category,contract_id,document_object,'
    217             'history,last_product_id,product_object,product_options,'
    218             'state,tc_dict,title,user_id\r\n'
    219             'RONContract,license,%s,,'
    220             '[u\'2014-12-21 22:26:00 WAT - Contract created by system\']'
    221             ',,,[],created,{\'en\': u\'Hello World\'},,K1000000\r\n'
     216            'category_practice,class_name,contract_category,contract_id,'
     217            'date_of_birth,history,last_product_id,lga,product_object,'
     218            'product_options,res_address,state,state_of_origin,superintendent,'
     219            'tc_dict,title,user_id,work_address,work_email,work_phone,'
     220            'year_qualification\r\n'
     221            ',RONContract,ron,%s,,'
     222            '[u\'2015-01-18 16:40:01 WAT - Contract created by system\'],,,,'
     223            '[],,created,,,{\'en\': u\'Hello World\'},,K1000000,,,,\r\n'
    222224            % self.contract.contract_id)
    223         # We can reimport the file if we change the header (user_id -> customer_id)
     225        # We can reimport the file if we change the header
     226        # (user_id -> customer_id). Not all columns are necessary.
    224227        processor = RONContractProcessor()
    225228        open(self.outfile, 'wb').write(
     
    268271
    269272    def setup_customizable_params(self):
    270         self._contract_category = u'license'
     273        self._contract_category = u'ron'
    271274        self._document_factory = 'waeup.PCNCustomerPDFDocument'
    272275        self._contract_factory = 'waeup.RONContract'
     
    324327
    325328    def setup_customizable_params(self):
    326         self._contract_category = u'license'
     329        self._contract_category = u'ron'
    327330        self._document_factory = 'waeup.PCNCustomerPDFDocument'
    328331        self._contract_factory = 'waeup.RONContract'
Note: See TracChangeset for help on using the changeset viewer.