Changeset 17257 for main/waeup.uniben/trunk/src/waeup/uniben/students/tests
- Timestamp:
- 4 Jan 2023, 13:13:37 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py
r17255 r17257 1 1 import datetime 2 2 from zope.component import queryUtility 3 3 from zope.interface.verify import verifyObject, verifyClass … … 95 95 96 96 def test_export_all(self): 97 # we can really export student s97 # we can really export student payments 98 98 # set values we can expect in export file 99 99 self.setup_student(self.student) … … 104 104 result = open(self.outfile, 'rb').read() 105 105 self.assertMatches( 106 'ac,amount_auth,creation_date,gateway_amt,net_amt,p_category,p_combi,p_curren t,'106 'ac,amount_auth,creation_date,gateway_amt,net_amt,p_category,p_combi,p_currency,p_current,' 107 107 'p_id,p_item,p_level,p_option,p_session,p_state,payment_date,provider_amt,' 108 108 'r_amount_approved,r_card_num,r_code,r_company,r_desc,' 109 'r_pay_reference,r ebate_amount,staff_rebate,thirdparty_amt,student_id,state,'109 'r_pay_reference,r_payment_link,rebate_amount,staff_rebate,thirdparty_amt,student_id,state,' 110 110 'current_session\r\n' 111 '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[], 1,my-id,p-item,'111 '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],,1,my-id,p-item,' 112 112 '100,,%s,paid,%s-04-01 14:12:01#,,12.12,' 113 '789,r-code,interswatch,,,,,, A111111,created,2012\r\n'113 '789,r-code,interswatch,,,,,,,A111111,created,2012\r\n' 114 114 % (curr_year-6, curr_year-6, curr_year-6), result 115 115 )
Note: See TracChangeset for help on using the changeset viewer.