We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e834fb commit 25ca3f2Copy full SHA for 25ca3f2
test/CheckoutTest.py
@@ -14,13 +14,10 @@ class TestCheckout(unittest.TestCase):
14
client.app_name = "appname"
15
16
def test_payment_methods_success_mocked(self):
17
- request = {}
18
- request['merchantAccount'] = "YourMerchantAccount"
19
-
+ request = {'merchantAccount': "YourMerchantAccount"}
+ file = "test/mocks/checkout/paymentmethods-success.json"
20
self.ady.client = self.test.create_client_from_file(200, request,
21
- 'test/mocks/checkout/'
22
- 'paymentmethods-success'
23
- '.json')
+ file)
24
result = self.ady.checkout.payment_methods(request)
25
self.assertEqual("AliPay", result.message['paymentMethods'][0]['name'])
26
self.assertEqual("Credit Card", result.message['paymentMethods'][2]['name'])
0 commit comments