Пример #1
0
 def setUpClass(self):
     print("---------------------------------------Tests---------------------------------------\nProduct Name: Visa Direct\nApi Name: Watch List Screening API")
     globalConfig = GlobalConfig()
     config = Configuration()
     config.username = globalConfig.userName
     config.password = globalConfig.password
     config.cert_file = globalConfig.certificatePath
     config.key_file = globalConfig.privateKeyPath
     config.shared_secret = globalConfig.sharedSecret
     config.api_key['apikey'] = globalConfig.apiKey
     config.ssl_ca_cert = globalConfig.caCertPath
     config.proxy_url = globalConfig.proxyUrl
     self.api = WsApi(None)
 def setUpClass(self):
     print(
         "---------------------------------------Tests---------------------------------------\nProduct Name: Payment Account Validation\nApi Name: Payment Account Validation API"
     )
     globalConfig = GlobalConfig()
     config = Configuration()
     config.username = globalConfig.userName
     config.password = globalConfig.password
     config.cert_file = globalConfig.certificatePath
     config.key_file = globalConfig.privateKeyPath
     config.shared_secret = globalConfig.sharedSecret
     config.api_key['apikey'] = globalConfig.apiKey
     config.ssl_ca_cert = globalConfig.caCertPath
     config.proxy_url = globalConfig.proxyUrl
     self.api = PavApi(None)