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

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

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/sample_student_data_duplicates.csv

    r8289 r8488  
    44C123456,Aaren,Berson,2,1990-01-04,100000,aa@aa.ng,1234,mypw1,m,admitted
    55F123456,Frank,Meyer,1,1990-01-06,100000,aa@aa.ng,1234,,m,
     6A123456,Uli,Schulz,3,1990-01-07,100002,aa@aa.ng,1234,,m,
  • 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.