Changeset 14276


Ignore:
Timestamp:
15 Nov 2016, 09:53:58 (8 years ago)
Author:
Henrik Bettermann
Message:

Fix test.

Adjust interswitch/browser.py to ease customization.

Location:
main/kofacustom.skeleton/trunk/src/kofacustom/skeleton
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/applicants/tests/test_browser.py

    r13983 r14276  
    7575    layer = FunctionalLayer
    7676
    77     def test_applicatio_slip(self):
     77    def test_application_slip(self):
    7878        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    7979        self.slip_path = self.view_path + '/application_slip.pdf'
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/interswitch/browser.py

    r13587 r14276  
    3030from kofacustom.skeleton.interfaces import MessageFactory as _
    3131
    32 PRODUCT_ID = '57'
     32PRODUCT_ID = '' # must be provided by Interswitch
    3333SITE_NAME = 'skeleton-kofa.waeup.org'
    3434PROVIDER_ACCT = '00000000'
     
    3838CURRENCY = '566'
    3939GATEWAY_AMT = 150.0
    40 #QUERY_URL = 'https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx'
    41 #QUERY_URL = 'https://testwebpay.interswitchng.com/test_paydirect/services/TransactionQueryURL.aspx'
    42 POST_ACTION = 'https://webpay.interswitchng.com/paydirect/webpay/pay.aspx'
    43 #POST_ACTION = 'https://testwebpay.interswitchng.com/test_paydirect/webpay/pay.aspx'
    4440
    45 HOST = 'webpay.interswitchng.com'
    46 #HOST = 'testwebpay.interswitchng.com'
    47 URL = '/paydirect/services/TransactionQueryWs.asmx'
    48 #URL = '/test_paydirect/services/TransactionQueryWs.asmx'
     41#POST_ACTION = 'https://webpay.interswitchng.com/paydirect/pay'
     42POST_ACTION = 'https://stageserv.interswitchng.com/test_paydirect/pay'
     43#HOST = 'webpay.interswitchng.com'
     44HOST = 'stageserv.interswitchng.com'
     45#URL = '/paydirect/api/v1/gettransaction.json'
     46URL = '/test_paydirect/api/v1/gettransaction.json'
     47
    4948httplib.HTTPSConnection.debuglevel = 0
    5049HTTPS = True
     
    5958    currency = CURRENCY
    6059    product_id = PRODUCT_ID
    61     mac = ''
     60    mac = ''  # must be provided by Interswitch
    6261
    6362    def update(self):
     
    7978        xmldict['institution_amt'] = '0.0'
    8079        provider_amt = 0.0
    81         self.pay_item_id = '0000'
     80        self.pay_item_id = '0000' # must be provided by Interswitch
    8281        xmldict['provider_amt'] = 100 * provider_amt
    8382        xmldict['institution_item_name'] = self.context.category
     
    121120    site_name = SITE_NAME
    122121    currency = CURRENCY
    123     pay_item_id = '0000'
     122    pay_item_id = '0000' # must be provided by Interswitch
    124123    product_id = PRODUCT_ID
    125124    mac = ''
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/students/tests/test_export.py

    r13716 r14276  
    5959            'next_kin_address,next_kin_name,next_kin_phone,next_kin_relation,'
    6060            'nysc_lga,nysc_location,nysc_year,officer_comment,'
    61             'perm_address,personal_updated,phone,physical_clearance_date,reg_number,'
     61            'perm_address,personal_updated,phone,'
     62            'physical_clearance_date,provisionally_cleared,reg_number,'
    6263            'religion,scd_sit_date,scd_sit_fname,scd_sit_no,'
    6364            'scd_sit_results,scd_sit_type,sex,student_id,'
     
    6768            'anna@sample.com,,,,,,,,,,,,,Anna,,,,,,"[(\'printing_craft_practice\', \'A1\')]"'
    6869            ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,'
    69             '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,,123,,,,,'
     70            '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,,,123,,,,,'
    7071            '"[(\'printing_craft_practice\', \'A1\')]",,f,A111111,0,,,created,'
    7172            '[u\'2012-11-06 13:16:41 WAT - Record created by system\'],'
Note: See TracChangeset for help on using the changeset viewer.