Ignore:
Timestamp:
23 Mar 2017, 06:09:02 (8 years ago)
Author:
Henrik Bettermann
Message:

Use and show course categories.

File:
1 edited

Legend:

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

    r14630 r14650  
    3838        rsr =  CustomRawScoreReport('fac1', 'dep1', 'CERT1', 2010, 100)
    3939        result = rsr._get_courses('fac1', 'dep1', 'CERT1', 2010, 100)
    40         self.assertEqual(result, [u'Course1'])
     40        self.assertEqual(result, [self.certificate.values()[0]])
     41        self.assertEqual(
     42            result,
     43            [self.app['faculties']['fac1']['dep1'].certificates[
     44                'CERT1']['Course1_100']])
    4145        return
    4246
     
    5660
    5761    def test_create_pdf(self):
     62        self.app['faculties']['fac1']['dep1'].certificates[
     63                'CERT1']['Course1_100'].course_category = 'xyz'
    5864        self.course2 = createObject('waeup.Course')
    5965        self.course2.code = 'Course2'
     
    126132        rsr =  GradRawScoreReport('fac1', 'dep1', 'CERT1', 2010, 100)
    127133        result = rsr._get_courses('fac1', 'dep1', 'CERT1', 2010, 100)
    128         self.assertEqual(result, [u'Course1'])
     134        self.assertEqual(result, [self.certificate.values()[0]])
     135        self.assertEqual(
     136            result,
     137            [self.app['faculties']['fac1']['dep1'].certificates[
     138                'CERT1']['Course1_100']])
    129139        return
    130140
     
    151161    def test_create_pdf(self):
    152162        self.certificate.end_level = 200
     163        self.app['faculties']['fac1']['dep1'].certificates['CERT1']['Course1_100'].course_category = 'xyz'
    153164        self.course2 = createObject('waeup.Course')
    154165        self.course2.code = 'Course2'
Note: See TracChangeset for help on using the changeset viewer.