Ignore:
Timestamp:
3 Nov 2015, 21:09:58 (9 years ago)
Author:
Henrik Bettermann
Message:

Prepare webservice test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py

    r13381 r13385  
    2929#   If you enable this, please make sure the external services
    3030#   do exist really and are not bothered by being spammed by a test programme.
    31 EXTERNAL_TESTS = False
     31EXTERNAL_TESTS = True
    3232
    3333def external_test(func):
     
    336336        self.assertEqual(results[0].p_state, 'failed')
    337337
    338         # Let's replace the p_id with a valid p_id of the Uniben
     338        # Let's replace the p_id with a valid p_id of the AAUE
    339339        # live system. This is definitely not an appropriate
    340340        # solution for testing, but we have no choice since
     
    342342        # for testing.
    343343        payment = self.student['payments'][self.value]
    344         payment.p_id = 'p3547789850240'
     344        payment.p_id = 'p4465649308559'
    345345        self.browser.open(self.payment_url + '/request_webservice')
    346346        self.assertTrue('Callback amount does not match' in
     
    369369            'zope.mgr - '
    370370            'waeup.aaue.interswitch.browser.CustomInterswitchPaymentRequestWebservicePageStudent - '
    371             'X1000000 - successful schoolfee payment: p3547789850240\n'
     371            'E1000000 - successful schoolfee payment: p4465649308559\n'
    372372            in logcontent)
    373373        # ... and in payments.log
     
    376376        logcontent = open(logfile).read()
    377377        self.assertTrue(
    378             '"zope.mgr",X1000000,p3547789850240,schoolfee,'
    379             '12000.0,00,0.0,150.0,0.0,,,\n'
     378            '"zope.mgr",E1000000,p4465649308559,schoolfee,'
     379            '60250.0,00,1500.0,250.0,0.0,,,\n'
    380380            in logcontent)
Note: See TracChangeset for help on using the changeset viewer.