Ignore:
Timestamp:
21 May 2012, 15:57:32 (12 years ago)
Author:
Henrik Bettermann
Message:

Check if students with duplicate student_ids can't be imported.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py

    r8411 r8488  
    458458            self.csv_file_duplicates, STUDENT_HEADER_FIELDS_DUPLICATES)
    459459        content = open(fail_file).read()
    460         self.assertEqual(num_warns,3)
     460        self.assertEqual(num_warns,4)
    461461        self.assertEqual(
    462462            content,
     
    465465            '2,Aaren,C123456,m,aa@aa.ng,1234,admitted,1990-01-04,Berson,mypw1,100000,matric_number: matric_number\r\n'
    466466            '1,Frank,F123456,m,aa@aa.ng,1234,,1990-01-06,Meyer,,100000,reg_number: reg_number; matric_number: matric_number\r\n'
     467            '3,Uli,A123456,m,aa@aa.ng,1234,,1990-01-07,Schulz,,100002,This object already exists. Skipping.\r\n'
    467468            )
    468469        shutil.rmtree(os.path.dirname(fin_file))
Note: See TracChangeset for help on using the changeset viewer.