- Timestamp:
- 19 Jul 2025, 06:41:05 (16 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interswitch/tests.py
r18043 r18131 76 76 # 250 gateway charge have been added 77 77 payment = self.student['payments'][self.value] 78 self.assertEqual(payment.amount_auth, 7 250)78 self.assertEqual(payment.amount_auth, 7800) 79 79 self.assertEqual(payment.net_amt, 7000) 80 80 self.assertTrue( 81 '<input type="hidden" name="amount" value="7 25000" />' in81 '<input type="hidden" name="amount" value="780000" />' in 82 82 self.browser.contents) 83 83 # WAeAC charge have been substracted … … 90 90 91 91 def test_interswitch_required_combi(self): 92 configuration = createObject('waeup.SessionConfiguration') 93 configuration.academic_session = 2025 94 self.app['configuration'].addSessionConfiguration(configuration) 92 95 # Student is a fresh non-science student 93 96 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 97 self.student['studycourse'].current_session = 2025 98 self.student['studycourse'].entry_session = 2025 94 99 self.browser.open(self.payments_path) 95 100 IWorkflowState(self.student).setState('cleared') … … 102 107 self.browser.getControl(name="form.p_category").value = ['required_combi'] 103 108 self.browser.getControl("Create payment").click() 104 self.assertTrue(' Student Health Insuranceundefined.' in self.browser.contents)105 self.app['configuration']['20 04'].registration_fresh_fee = 10000.0106 self.app['configuration']['20 04'].book_fee = 10000.0107 self.app['configuration']['20 04'].develop_fee = 10000.0108 self.app['configuration']['20 04'].parentsconsult_fee = 10000.0109 self.app['configuration']['20 04'].municipal_fresh_fee = 10000.0110 self.app['configuration']['20 04'].matric_fee = 10000.0111 self.app['configuration']['20 04'].waecneco_fee = 10000.0112 self.app['configuration']['20 04'].jambver_fee = 10000.0113 self.app['configuration']['20 04'].health_insurance_fee = 10000.0114 self.app['configuration']['20 04'].id_card_fee = 10000.0115 self.app['configuration']['20 04'].medical_screening_fee = 10000.0109 self.assertTrue('undefined.' in self.browser.contents) 110 self.app['configuration']['2025'].registration_fresh_fee = 10000.0 111 self.app['configuration']['2025'].book_fee = 10000.0 112 self.app['configuration']['2025'].develop_fee = 10000.0 113 self.app['configuration']['2025'].parentsconsult_fee = 10000.0 114 self.app['configuration']['2025'].municipal_fresh_fee = 10000.0 115 self.app['configuration']['2025'].matric_fee = 10000.0 116 self.app['configuration']['2025'].waecneco_fee = 10000.0 117 self.app['configuration']['2025'].jambver_fee = 10000.0 118 self.app['configuration']['2025'].health_insurance_fee = 10000.0 119 self.app['configuration']['2025'].id_card_fee = 10000.0 120 self.app['configuration']['2025'].medical_screening_fee = 10000.0 116 121 self.browser.getControl(name="form.p_category").value = ['required_combi'] 117 122 self.browser.getControl("Create payment").click() … … 130 135 # 250 gateway charge have been added 131 136 payment = self.student['payments'][self.value] 132 self.assertEqual(payment.amount_auth, 110 250)137 self.assertEqual(payment.amount_auth, 110800) 133 138 self.assertEqual(payment.net_amt, 110000) 134 139 self.assertTrue( 135 '<input type="hidden" name="amount" value="110 25000" />' in140 '<input type="hidden" name="amount" value="11080000" />' in 136 141 self.browser.contents) 137 142 self.assertTrue( … … 139 144 self.browser.contents) 140 145 self.assertTrue( 141 'item_id="12" item_name="parentsconsult" item_amt="1000000" bank_id="117" acct_num="1 228747029"' in146 'item_id="12" item_name="parentsconsult" item_amt="1000000" bank_id="117" acct_num="1012355544"' in 142 147 self.browser.contents) 143 148 … … 160 165 # 250 gateway charge have been added 161 166 self.assertTrue( 162 '<input type="hidden" name="amount" value="1 25000" />' in163 self.browser.contents) 164 self.assertEqual(acc_payment.amount_auth, 1 250)167 '<input type="hidden" name="amount" value="180000" />' in 168 self.browser.contents) 169 self.assertEqual(acc_payment.amount_auth, 1800) 165 170 self.assertEqual(acc_payment.net_amt, 1000) 166 171 delta = timedelta(days=8)
Note: See TracChangeset for help on using the changeset viewer.