Ignore:
Timestamp:
13 Mar 2017, 17:17:34 (8 years ago)
Author:
Henrik Bettermann
Message:

If at final year or extension(s) "cum_credits_taken" is less than 90 units, let KOFA return FRNS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_level_report.py

    r14608 r14623  
    5959
    6060    def test_get_students(self):
    61        
    6261        self.student['studycourse']['100']['Course1'].ca = 0
    6362        lr =  GradLevelReport('fac1', 'dep1', 'CERT1', 2010, 100)
     
    6564        result = lr._get_students('fac1', 'dep1', 'CERT1', 2010, 100)
    6665        self.assertEqual(result, [])
    67         # if end level is 100, the student seems graduatiing and
     66        # if end level is 100, the student seems graduating and
    6867        # we can get a table with one student
    6968        self.certificate.end_level = 100
     69        self.student['studycourse']['100']['Course1'].credits = 91
    7070        result = lr._get_students('fac1', 'dep1', 'CERT1', 2010, 100)
    7171        self.assertEqual(result,
    72             [(u'1234', u'TESTER, Bob', 30, 30, '5.000',
    73                'Nil', 'Nil', 30, 30, '5.00', '1s_st_s')])
     72            [(u'1234', u'TESTER, Bob', 91, 91, '5.000',
     73               'Nil', 'Nil', 91, 91, '5.00', '1s_st_s')])
    7474        return
    7575
    7676    def test_create_pdf(self):
    7777        self.student['studycourse']['100']['Course1'].ca = 0
     78        self.student['studycourse']['100']['Course1'].credits = 91
     79        self.certificate.end_level = 100
    7880        self.app['faculties']['fac1'].officer_1 = 'Rosa Moonshine - Dean of Faculty'
    7981        self.app['faculties']['fac1']['dep1'].officer_1 = 'Amalia Sunshine - Head of Department'
Note: See TracChangeset for help on using the changeset viewer.