Changeset 16417 for main/kofacustom.coewarri/trunk/src/kofacustom/coewarri
- Timestamp:
- 17 Mar 2021, 21:56:12 (4 years ago)
- Location:
- main/kofacustom.coewarri/trunk/src/kofacustom/coewarri
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interswitch/tests.py
r16399 r16417 69 69 self.browser.contents) 70 70 self.assertMatches( 71 '...<span>8 0450.0</span>...',71 '...<span>85950.0</span>...', 72 72 self.browser.contents) 73 73 self.payment_url = self.browser.url … … 79 79 self.assertEqual(self.student.current_mode, 'ug_ft') 80 80 self.assertMatches( 81 '...<input type="hidden" name="amount" value="8 045000" />...',82 self.browser.contents) 83 self.assertMatches( 84 '...item_name="School Fee (total)" item_amt="8 045000" bank_id="8" acct_num="2000746414"...',81 '...<input type="hidden" name="amount" value="8595000" />...', 82 self.browser.contents) 83 self.assertMatches( 84 '...item_name="School Fee (total)" item_amt="8595000" bank_id="8" acct_num="2000746414"...', 85 85 self.browser.contents) 86 86 -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_browser.py
r16369 r16417 75 75 self.assertEqual(self.student['payments'].values()[0].p_category, 'schoolfee_1') 76 76 self.assertEqual(self.student['payments'].values()[1].p_category, 'schoolfee_2') 77 # 8 0200/ 2 + 25078 self.assertEqual(self.student['payments'].values()[0].amount_auth, 4 0350.0)79 self.assertEqual(self.student['payments'].values()[1].amount_auth, 4 0350.0)77 # 85700/ 2 + 250 78 self.assertEqual(self.student['payments'].values()[0].amount_auth, 43100.0) 79 self.assertEqual(self.student['payments'].values()[1].amount_auth, 43100.0) 80 80 # The two payments belong to the same session and level. 81 81 self.assertEqual(self.student['payments'].values()[0].p_session, 2004) … … 105 105 self.assertEqual(self.student.current_level, 200) 106 106 self.assertEqual(self.student.current_session, 2005) 107 # 7 3700 / 2 + 250108 self.assertEqual(self.student['payments'].values()[2].amount_auth, 37100.0)109 self.assertEqual(self.student['payments'].values()[3].amount_auth, 37100.0)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) 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_utils.py
r15747 r16417 31 31 self.assertEqual(payment.p_level, 100) 32 32 self.assertEqual(payment.p_session, 2016) 33 self.assertEqual(payment.amount_auth, 8 0450.0)33 self.assertEqual(payment.amount_auth, 85950.0) 34 34 self.assertEqual(payment.p_item, u'CERT1') 35 35 self.assertEqual(error, None) … … 38 38 self.assertEqual(payment.p_level, 100) 39 39 self.assertEqual(payment.p_session, 2016) 40 self.assertEqual(payment.amount_auth, 4 0350.0)40 self.assertEqual(payment.amount_auth, 43100.0) 41 41 self.assertEqual(payment.p_item, u'CERT1') 42 42 self.assertEqual(error, None) … … 45 45 self.assertEqual(payment.p_level, 100) 46 46 self.assertEqual(payment.p_session, 2016) 47 self.assertEqual(payment.amount_auth, 4 0350.0)47 self.assertEqual(payment.amount_auth, 43100.0) 48 48 self.assertEqual(payment.p_item, u'CERT1') 49 49 self.assertEqual(error, None) … … 55 55 self.student.lga = 'delta_burutu' 56 56 error, payment = utils.setPaymentDetails('schoolfee',self.student) 57 self.assertEqual(payment.amount_auth, 7 0450.0)57 self.assertEqual(payment.amount_auth, 75950.0) 58 58 error, payment = utils.setPaymentDetails('clearance',self.student) 59 59 self.assertEqual(payment.amount_auth, 20300.0) -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/utils.py
r16400 r16417 43 43 FEES_VALUES = ( 44 44 ( # 100 110 200 210 300 310 400 410 500 999 45 (43200.0, 43200.0, 4 2700.0, 42700.0, 37200.0, 37200.0, 0.0, 0.0, 0.0, 0.0), # nce_ft45 (43200.0, 43200.0, 46200.0, 46200.0, 40200.0, 40200.0, 0.0, 0.0, 0.0, 0.0), # nce_ft 46 46 (55200.0, 55200.0, 49200.0, 49200.0, 53200.0, 53200.0, 49200.0, 49200.0, 0.0, 0.0), # nce_pt 47 (7 0200.0, 70200.0, 63700.0, 63700.0, 67700.0, 67700.0, 61700.0, 61700.0, 0.0, 0.0), # ug_ft47 (75700.0, 75700.0, 69700.0, 69700.0, 73700.0, 73700.0, 67700.0, 67700.0, 0.0, 0.0), # ug_ft 48 48 (33200.0, 33200.0, 28000.0, 28000.0, 32000.0, 32000.0, 28000.0, 28000.0, 0.0, 0.0), # nce_we_pt 49 49 ), # local 50 50 ( # 51 (55800.0, 55800.0, 5 4800.0, 54800.0, 49800.0, 49800.0, 0.0, 0.0, 0.0, 0.0), # nce_ft51 (55800.0, 55800.0, 58700.0, 58700.0, 52700.0, 52700.0, 0.0, 0.0, 0.0, 0.0), # nce_ft 52 52 (55200.0, 55200.0, 49200.0, 49200.0, 53200.0, 53200.0, 49200.0, 49200.0, 0.0, 0.0), # nce_pt 53 (8 0200.0, 80200.0, 73700.0, 73700.0, 77700.0, 77700.0, 71700.0, 71700.0, 0.0, 0.0), # ug_ft53 (85700.0, 85700.0, 79700.0, 79700.0, 83700.0, 83700.0, 77700.0, 77700.0, 0.0, 0.0), # ug_ft 54 54 (33200.0, 33200.0, 28000.0, 28000.0, 32000.0, 32000.0, 28000.0, 28000.0, 0.0, 0.0), # nce_we_pt 55 55 ), # non-local
Note: See TracChangeset for help on using the changeset viewer.