- Timestamp:
- 23 Mar 2012, 08:49:56 (13 years ago)
- Location:
- main/waeup.custom/trunk/src/waeup/custom/etranzact
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/src/waeup/custom/etranzact/browser.py
r7929 r7976 35 35 icon = 'actionicon_call.png' 36 36 text = _('Query eTranzact History') 37 target = 'enter _pin'37 target = 'enterpin' 38 38 39 39 class EtranzactEnterPinPage(KofaPage): 40 """ 41 """ 40 42 grok.context(IStudentOnlinePayment) 41 grok.name('enter _pin')42 grok.template('enter _pin')43 grok.name('enterpin') 44 grok.template('enterpin') 43 45 grok.require('waeup.payStudent') 44 46 47 buttonname = _('Submit to eTranzact') 48 label = _('Requery eTranzact History') 49 action = 'query_history' 45 50 46 51 class EtranzactQueryHistoryPage(UtilityView, grok.View): -
main/waeup.custom/trunk/src/waeup/custom/etranzact/tests.py
r7970 r7976 37 37 38 38 class EtranzactTests(StudentsFullSetup): 39 """Tests for eTranzact payment gateway.39 """Tests for the eTranzact payment gateway. 40 40 """ 41 41 … … 44 44 CONFIRMATION_NO = '500856521315472785095' 45 45 46 def test_dummy(self): 47 return 48 49 @external_test 50 def test_etranzact_query_history(self): 51 46 def setUp(self): 47 super(EtranzactTests, self).setUp() 52 48 # Managers can add online payment tickets 53 49 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') … … 63 59 self.assertMatches('...Amount Authorized...', 64 60 self.browser.contents) 65 payment_url = self.browser.url 66 67 self.browser.open(payment_url + '/query_history?confirmation_number=%s' 61 self.payment_url = self.browser.url 62 63 def test_enterpin(self): 64 self.browser.getLink("Query eTranzact History").click() 65 self.assertMatches( 66 '...Confirmation Number (PIN):...', 67 self.browser.contents) 68 69 @external_test 70 def test_etranzact_query_history(self): 71 72 self.browser.open(self.payment_url + '/query_history?confirmation_number=%s' 68 73 % self.CONFIRMATION_NO) 69 74 self.assertMatches('...Wrong amount...', … … 72 77 self.student['payments'][value].amount_auth = self.student[ 73 78 'payments'][value].r_amount_approved 74 self.browser.open( payment_url + '/query_history?confirmation_number=%s'79 self.browser.open(self.payment_url + '/query_history?confirmation_number=%s' 75 80 % self.CONFIRMATION_NO) 76 81 self.assertMatches('...Wrong transaction id...',
Note: See TracChangeset for help on using the changeset viewer.