- Timestamp:
- 23 Apr 2021, 07:22:53 (4 years ago)
- Location:
- main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_browser.py
r16417 r16474 106 106 self.assertEqual(self.student.current_session, 2005) 107 107 # 79700 / 2 + 250 108 self.assertEqual(self.student['payments'].values()[2].amount_auth, 40100.0)109 self.assertEqual(self.student['payments'].values()[3].amount_auth, 40100.0)108 self.assertEqual(self.student['payments'].values()[2].amount_auth, 37600.0) 109 self.assertEqual(self.student['payments'].values()[3].amount_auth, 37600.0) 110 110 # The last two payments belong to the same session and level. 111 111 self.assertEqual(self.student['payments'].values()[2].p_session, 2005) -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_export.py
r15747 r16474 104 104 self.assertMatches( 105 105 'ac,amount_auth,creation_date,gateway_amt,net_amt,p_category,p_combi,p_current,' 106 'p_id,p_item,p_level,p_ session,p_state,payment_date,provider_amt,'106 'p_id,p_item,p_level,p_option,p_session,p_state,payment_date,provider_amt,' 107 107 'r_amount_approved,r_card_num,r_code,r_company,r_desc,' 108 108 'r_pay_reference,thirdparty_amt,student_id,state,' 109 109 'current_session\r\n' 110 110 '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],1,my-id,p-item,' 111 '100, %s,paid,%s-04-01 14:12:01#,,12.12,'111 '100,,%s,paid,%s-04-01 14:12:01#,,12.12,' 112 112 '789,r-code,interswatch,,,,A111111,created,2012\r\n' 113 113 % (curr_year-6, curr_year-6, curr_year-6), result
Note: See TracChangeset for help on using the changeset viewer.