Changeset 12538 for main


Ignore:
Timestamp:
1 Feb 2015, 07:42:28 (10 years ago)
Author:
Henrik Bettermann
Message:

Email is now required.

File:
1 edited

Legend:

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

    r12536 r12538  
    6262        customer.reg_number = u'123'
    6363        customer.sex = u'f'
     64        customer.email = u'aa@aa.aa'
    6465        customer.date_of_birth = datetime.date(1981, 2, 4)
    6566        IWorkflowState(customer).setState('started')
     
    9596            'customer_id,date_of_birth,email,firstname,lastname,middlename,phone,'
    9697            'reg_number,sex,suspended,suspended_comment,password,state,history\r\n'
    97             'K1000000,1981-02-04#,,Beate,Mueller,,,123,f,0,,,started,[]\r\n')
     98            'K1000000,1981-02-04#,aa@aa.aa,Beate,Mueller,,,123,f,0,,,started,[]\r\n')
    9899        # We can reimport the file ...
    99100        processor = PCNCustomerProcessor()
     
    114115        num_succ, num_fail, finished_path, failed_path = result
    115116        self.assertEqual(num_fail,0)
    116         # We can import the same file in update mode if we ignore the reg_number.
    117         result = processor.doImport(
    118             self.outfile,
    119             ['customer_id','date_of_birth','email','firstname','lastname','middlename','phone',
     117        # We can import the same file in update mode if we ignore
     118        # the reg_number and email address
     119        result = processor.doImport(
     120            self.outfile,
     121            ['customer_id','date_of_birth','xx_email','firstname','lastname','middlename','phone',
    120122            'xx_reg_number','sex','suspended','suspended_comment','password','state'],
    121123            mode='update')
Note: See TracChangeset for help on using the changeset viewer.