Ignore:
Timestamp:
19 Feb 2017, 07:38:38 (8 years ago)
Author:
Henrik Bettermann
Message:

Pin waeup.kofa 1.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.sampleuni/trunk/src/kofacustom/sampleuni/students/tests/test_export.py

    r13289 r14557  
    44from waeup.kofa.interfaces import ICSVExporter
    55from waeup.kofa.schoolgrades import ResultEntry
    6 from waeup.kofa.students.tests.test_batching import StudentImportExportSetup
     6from waeup.kofa.students.tests.test_batching import (
     7    StudentImportExportSetup, curr_year)
    78from kofacustom.sampleuni.utils.utils import CustomKofaUtils
    89from kofacustom.sampleuni.students.export import (
     
    4647        result = open(self.outfile, 'rb').read()
    4748        self.assertMatches(
    48             'adm_code,clearance_locked,clr_code,date_of_birth,email,'
    49             'employer,firstname,lastname,matric_number,middlename,'
     49            'adm_code,clr_code,date_of_birth,email,'
     50            'employer,firstname,flash_notice,lastname,matric_number,middlename,'
    5051            'nationality,officer_comment,perm_address,personal_updated,'
    5152            'phone,reg_number,sex,student_id,suspended,suspended_comment,'
    5253            'password,state,history,certcode,is_postgrad,current_level,'
    53             'current_session\r\nmy adm code,0,my clr code,1981-02-04#,'
    54             'anna@sample.com,,Anna,Tester,234,M.,NG,,'
     54            'current_session\r\nmy adm code,my clr code,1981-02-04#,'
     55            'anna@sample.com,,Anna,,Tester,234,M.,NG,,'
    5556            '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,'
    5657            'f,A111111,0,,,created,'
     
    9091            'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,'
    9192            'r_code,r_desc,student_id,state,current_session\r\n666,'
    92             '12.12,2012-04-01 13:12:01#,schoolfee,1,my-id,p-item,'
    93             '100,2012,paid,2012-04-01 14:12:01#,12.12,r-code,,'
    94             'A111111,created,2012\r\n',
    95             result
     93            '12.12,%s-04-01 13:12:01#,schoolfee,1,my-id,p-item,'
     94            '100,%s,paid,%s-04-01 14:12:01#,12.12,r-code,,'
     95            'A111111,created,2012\r\n'
     96            % (curr_year-6, curr_year-6, curr_year-6), result
    9697            )
    9798        return
Note: See TracChangeset for help on using the changeset viewer.