Changeset 12666


Ignore:
Timestamp:
5 Mar 2015, 12:27:11 (10 years ago)
Author:
Henrik Bettermann
Message:

Update tests an remove invalid lgas.

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

Legend:

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

    r12591 r12666  
    224224        self.assertMatches(result,
    225225            'categories_practice,class_name,comment,contract_category,contract_id,'
    226             'history,last_product_id,lga,product_object,'
     226            'fee_based,history,last_product_id,lga,product_object,'
    227227            'product_options,res_address,state,state_of_origin,superintendent,'
    228             'tc_dict,title,user_id,work_address,work_email,work_phone,'
     228            'tc_dict,title,user_id,valid_from,valid_to,work_address,work_email,work_phone,'
    229229            'year_qualification\r\n'
    230             '[],RONContract,,ron,%s,'
     230            '[],RONContract,,ron,%s,0,'
    231231            '[u\'2015-01-18 16:40:01 WAT - License created by system\'],,,,'
    232             '[],,created,,,{\'en\': u\'Hello World\'},,K1000000,,,,\r\n'
     232            '[],,created,,,{\'en\': u\'Hello World\'},,K1000000,,,,,,\r\n'
    233233            % self.contract1.contract_id)
    234234        # We can reimport the file if we change the header
     
    283283        self.assertMatches(result,
    284284            'categories_practice,class_name,contract_category,contract_id,'
    285             'date_of_qualification,history,inspected,last_license_number,'
     285            'date_of_qualification,fee_based,history,inspected,last_license_number,'
    286286            'last_product_id,official_in_state,other_directors,'
    287287            'pharmacists_directors,premises_address,premises_certificate,'
    288288            'product_object,product_options,recommended,res_address,'
    289             'state,superintendent,tc_dict,title,user_id,work_address\r\n'
    290 
    291             '[],ROPContract,rop,%s,,'
     289            'state,superintendent,tc_dict,title,user_id,valid_from,valid_to,'
     290            'work_address\r\n'
     291
     292            '[],ROPContract,rop,%s,,0,'
    292293            '[u\'2015-01-20 18:51:03 WAT - License created by system\']'
    293             ',,,,,,,,,,[],,,created,,{\'en\': u\'Hello World\'},,K1000000,\r\n'
     294            ',,,,,,,,,,[],,,created,,{\'en\': u\'Hello World\'},,K1000000,,,\r\n'
    294295            % self.contract2.contract_id)
    295296        # We can reimport the file if we change the header
  • main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/utils/lgas.py

    r12601 r12666  
    245245    ('delta_ughelli-south','Delta / Ughelli-South'),
    246246    ('delta_ukwuani','Delta / Ukwuani'),
    247     ('delta_urwie','Delta / Urwie'),
    248     ('delta_uvie','Delta / Uvie'),
    249     ('delta_uvwei','Delta / Uvwei'),
    250247    ('delta_uvwie','Delta / Uvwie'),
    251248    ('delta_warri-central','Delta / Warri-Central'),
Note: See TracChangeset for help on using the changeset viewer.