Ignore:
Timestamp:
25 Jun 2018, 09:44:43 (6 years ago)
Author:
Henrik Bettermann
Message:

Changing output of SessionPaymentsOverviewExporter?, see docstring.

File:
1 edited

Legend:

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

    r15051 r15060  
    12391239        super(SessionPaymentsOverviewExporterTest, self).setUp()
    12401240        self.setup_for_export()
     1241        grok.getSite()['configuration'].current_academic_session = curr_year - 4
    12411242        return
    12421243
     
    12621263            'student_id,matric_number,display_fullname,state,certcode,'
    12631264            'faccode,depcode,is_postgrad,current_level,current_session,'
    1264             'current_mode,entry_session,reg_number,schoolfee,clearance,'
    1265             'gown,transcript\r\n'
    1266             'A111111,234,Anna M. Tester,created,CERT1,NA,NA,0,200,2012,'
    1267             'ug_ft,2010,123,2012,,,' in result
     1265            'current_mode,entry_session,reg_number,schoolfee12,'
     1266            'schoolfee13,schoolfee14,clearance12,clearance13,clearance14,'
     1267            'gown12,gown13,gown14,transcript12,transcript13,transcript14\r\n'
     1268            'A111111,234,Anna M. Tester,created,CERT1,NA,NA,0,200,'
     1269            '2012,ug_ft,2010,123,'
     1270            '12.12,,,,,,,,,,,\r\n' in result
    12681271            )
    12691272        return
    12701273
    12711274    def test_export_all(self):
    1272         # we can really export students
    1273         # set values we can expect in export file
    12741275        self.setup_student(self.student)
    12751276        # We add successful payments.
     
    13021303        result = open(self.outfile, 'rb').read()
    13031304        self.assertTrue(
    1304             'student_id,matric_number,display_fullname,state,certcode,'
    1305             'faccode,depcode,is_postgrad,current_level,current_session,'
    1306             'current_mode,entry_session,reg_number,schoolfee,clearance,'
    1307             'gown,transcript\r\nA111111,234,Anna M. Tester,created,CERT1,'
    1308             'NA,NA,0,200,2012,ug_ft,2010,123,2013+2013+2014+2012,,,\r\n'
     1305            'student_id,matric_number,display_fullname,state,certcode,faccode,'
     1306            'depcode,is_postgrad,current_level,current_session,'
     1307            'current_mode,entry_session,reg_number,'
     1308            'schoolfee12,schoolfee13,schoolfee14,'
     1309            'clearance12,clearance13,clearance14,'
     1310            'gown12,gown13,gown14,'
     1311            'transcript12,transcript13,transcript14\r\n'
     1312            'A111111,234,Anna M. Tester,created,CERT1,NA,NA,0,200,2012,ug_ft,'
     1313            '2010,123,'
     1314            '12.12,14.14,1.01,,,,,,,,,\r\n'
    13091315            in result
    13101316            )
Note: See TracChangeset for help on using the changeset viewer.