Ignore:
Timestamp:
5 Feb 2014, 07:00:02 (11 years ago)
Author:
Henrik Bettermann
Message:

Test import of ResultEntryField? values.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/sample_student_data.csv

    r9041 r11054  
    1 firstname,lastname,reg_number,date_of_birth,matric_number,email,phone,sex,nationality
    2 Aaren,Pieri,1,,100000,aa@aa.ng,1234,m,DE
    3 Aaren,Finau,2,,100001,aa@aa.ng,1234,m,NG
    4 Aaren,Berson,3,,100002,aa@aa.ng,1234,m,FR
     1firstname,lastname,reg_number,date_of_birth,matric_number,email,phone,sex,nationality,fst_sit_results
     2Aaren,Pieri,1,,100000,aa@aa.ng,1234,m,DE,"[('visual_art','A1'),('applied_electricity','C6')]"
     3Aaren,Finau,2,,100001,aa@aa.ng,1234,m,NG,[]
     4Aaren,Berson,3,,100002,aa@aa.ng,1234,m,FR,[]
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py

    r9582 r11054  
    9898        self.assertEqual(num_warns,0)
    9999        assert len(self.app['students'].keys()) == 3
     100        # Also fst_sit_results have been properly imported (tested only here!)
     101        self.assertEqual(
     102            self.app['students']['K1000000'].fst_sit_results[0].__dict__,
     103            {'grade': 'A1', 'subject': 'visual_art'})
     104        self.assertEqual(
     105            self.app['students']['K1000000'].fst_sit_results[1].__dict__,
     106            {'grade': 'C6', 'subject': 'applied_electricity'})
    100107        shutil.rmtree(os.path.dirname(fin_file))
    101108
Note: See TracChangeset for help on using the changeset viewer.