- Timestamp:
- 10 Aug 2017, 06:43:59 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/tests.py
r14788 r14790 38 38 EXTERNAL_TESTS = True 39 39 40 MERCHANTID = '2547916' 41 HOST = 'www.remitademo.net' 42 HTTPS = False 43 API_KEY = '1946' 44 SERVICETYPEID = '4430731' 45 40 46 def external_test(func): 41 47 if not EXTERNAL_TESTS: … … 50 56 class HelperTests(unittest.TestCase): 51 57 52 merchantId = '2547916' 53 serviceTypeId = '4430731' 54 api_key = '1946' 58 merchantId = MERCHANTID 59 host = HOST 60 https = HTTPS 61 api_key = API_KEY 62 serviceTypeId = SERVICETYPEID 63 55 64 responseurl = 'http://xxxx' 56 host = 'www.remitademo.net' 65 57 66 url = '/remita/ecomm/split/init.reg' # /remita/ecomm/v2/init.reg 58 67 lineitems = ( … … 72 81 api_key=self.api_key, orderId=self.orderId, 73 82 amount=self.amount, responseurl=self.responseurl, 74 host=self.host, url=self.url, https= False,83 host=self.host, url=self.url, https=self.https, 75 84 fullname='Anton Meier', email='am@xxx.de', 76 85 lineitems=self.lineitems) … … 84 93 api_key=self.api_key, orderId=self.orderId, 85 94 amount=self.amount, responseurl=self.responseurl, 86 host=self.host, url=self.url, https= False,95 host=self.host, url=self.url, https=self.https, 87 96 fullname='Anton Meier', email='am@xxx.de', 88 97 lineitems=self.lineitems) … … 99 108 RRR=self.rrr, 100 109 host=self.host, 101 https= False,110 https=self.https, 102 111 ) 103 112 assert resp['orderId'] == self.orderId … … 116 125 layer = FunctionalLayer 117 126 118 merchantId = '2547916' 119 serviceTypeId = '4430731' 120 api_key = '1946' 127 merchantId = MERCHANTID 128 host = HOST 129 https = HTTPS 130 api_key = API_KEY 131 121 132 responseurl = 'http://xxxx' 122 host = 'www.remitademo.net'123 133 124 134 # successful transaction … … 162 172 RRR=self.rrr_p, 163 173 host=self.host, 164 https= False,174 https=self.https, 165 175 verify=False) 166 176 assert qr == ( … … 179 189 RRR=self.rrr, 180 190 host=self.host, 181 https= False,191 https=self.https, 182 192 verify=False) 183 193 assert qr[0] == True … … 232 242 layer = FunctionalLayer 233 243 234 merchantId = '2547916' 235 serviceTypeId = '4430731' 236 api_key = '1946' 244 merchantId = MERCHANTID 245 host = HOST 246 https = HTTPS 247 api_key = API_KEY 248 237 249 responseurl = 'http://xxxx' 238 host = 'www.remitademo.net'239 250 240 251 # successful transaction … … 288 299 layer = FunctionalLayer 289 300 290 merchantId = '2547916' 291 serviceTypeId = '4430731' 292 api_key = '1946' 301 merchantId = MERCHANTID 302 host = HOST 303 https = HTTPS 304 api_key = API_KEY 305 293 306 responseurl = 'http://xxxx' 294 host = 'www.remitademo.net'295 307 296 308 # successful transaction
Note: See TracChangeset for help on using the changeset viewer.