Changeset 14658 for main/kofacustom.coewarri/trunk/src
- Timestamp:
- 27 Mar 2017, 10:39:43 (8 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/browser.py
r14640 r14658 37 37 INSTITUTION_NAME = 'COE Warri' 38 38 CURRENCY = '566' 39 GATEWAY_AMT = 300.039 GATEWAY_AMT = 250.0 40 40 MAC = '9309B5CBF1BFB09693C6F5F578046E3FCAB0A2538C3FE4221A6E63AFD348DE888E655F9C7E9F112151A702B6B09E6A7ACC5B3BF3C701F0C1B0D8EA6C1872AE94' 41 41 -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interswitch/tests.py
r14344 r14658 68 68 self.browser.contents) 69 69 self.assertMatches( 70 '...<span>79 500.0</span>...',70 '...<span>79450.0</span>...', 71 71 self.browser.contents) 72 72 self.payment_url = self.browser.url … … 78 78 self.assertEqual(self.student.current_mode, 'ug_ft') 79 79 self.assertMatches( 80 '...<input type="hidden" name="amount" value="79 50000" />...',81 self.browser.contents) 82 self.assertMatches( 83 '...item_name="School Fee (total)" item_amt="79 50000" bank_id="7" acct_num="1019684470"...',80 '...<input type="hidden" name="amount" value="7945000" />...', 81 self.browser.contents) 82 self.assertMatches( 83 '...item_name="School Fee (total)" item_amt="7945000" bank_id="7" acct_num="1019684470"...', 84 84 self.browser.contents) 85 85 -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_browser.py
r14344 r14658 73 73 self.assertEqual(self.student['payments'].values()[0].p_category, 'schoolfee_1') 74 74 self.assertEqual(self.student['payments'].values()[1].p_category, 'schoolfee_2') 75 # 79200 / 2 + 30076 self.assertEqual(self.student['payments'].values()[0].amount_auth, 39 900.0)77 self.assertEqual(self.student['payments'].values()[1].amount_auth, 39 900.0)75 # 79200 / 2 + 250 76 self.assertEqual(self.student['payments'].values()[0].amount_auth, 39850.0) 77 self.assertEqual(self.student['payments'].values()[1].amount_auth, 39850.0) 78 78 # The two payments belong to the same session and level. 79 79 self.assertEqual(self.student['payments'].values()[0].p_session, 2004) … … 103 103 self.assertEqual(self.student.current_level, 200) 104 104 self.assertEqual(self.student.current_session, 2005) 105 # 63100 / 2 + 300106 self.assertEqual(self.student['payments'].values()[2].amount_auth, 318 50.0)107 self.assertEqual(self.student['payments'].values()[3].amount_auth, 318 50.0)105 # 63100 / 2 + 250 106 self.assertEqual(self.student['payments'].values()[2].amount_auth, 31800.0) 107 self.assertEqual(self.student['payments'].values()[3].amount_auth, 31800.0) 108 108 # The last two payments belong to the same session and level. 109 109 self.assertEqual(self.student['payments'].values()[2].p_session, 2005) -
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_utils.py
r14639 r14658 31 31 self.assertEqual(payment.p_level, 100) 32 32 self.assertEqual(payment.p_session, 2016) 33 self.assertEqual(payment.amount_auth, 79 500.0)33 self.assertEqual(payment.amount_auth, 79450.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, 39 900.0)40 self.assertEqual(payment.amount_auth, 39850.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, 39 900.0)47 self.assertEqual(payment.amount_auth, 39850.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, 69 500.0)57 self.assertEqual(payment.amount_auth, 69450.0) 58 58 error, payment = utils.setPaymentDetails('clearance',self.student) 59 59 self.assertEqual(payment.amount_auth, 20300.0)
Note: See TracChangeset for help on using the changeset viewer.