Skip to content

Commit 129d90e

Browse files
committed
add test prefix needed for travis ci tests to succeed
1 parent aa65cbf commit 129d90e

File tree

8 files changed

+37
-38
lines changed

8 files changed

+37
-38
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ install:
1111
script:
1212
- make coverage
1313
- pycodestyle -v
14-
- pytest
1514
after_success:
1615
- coveralls
1716
- pylint Adyen

test/CheckoutTest.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class TestCheckout(unittest.TestCase):
1515
def test_payment_methods_success_mocked(self):
1616
request = {'merchantAccount': "YourMerchantAccount"}
1717
self.adyen.client = self.test.create_client_from_file(200, request,
18-
"mocks/"
18+
"test/mocks/"
1919
"checkout/"
2020
"paymentmethods"
2121
"-success.json")
@@ -29,7 +29,7 @@ def test_payment_methods_success_mocked(self):
2929
def test_payment_methods_error_mocked(self):
3030
request = {'merchantAccount': "YourMerchantAccount"}
3131
self.adyen.client = self.test.create_client_from_file(200, request,
32-
"mocks/"
32+
"test/mocks/"
3333
"checkout/"
3434
"paymentmethods-"
3535
"error-forbidden"
@@ -53,7 +53,7 @@ def test_payments_success_mocked(self):
5353
'returnUrl': "https://your-company.com/..."}
5454

5555
self.adyen.client = self.test.create_client_from_file(200, request,
56-
"mocks/"
56+
"test/mocks/"
5757
"checkout/"
5858
"payments"
5959
"-success"
@@ -79,7 +79,7 @@ def test_payments_error_mocked(self):
7979
'returnUrl': "https://your-company.com/..."}
8080

8181
self.adyen.client = self.test.create_client_from_file(200, request,
82-
"mocks/"
82+
"test/mocks/"
8383
"checkout/"
8484
"payments-error"
8585
"-invalid"
@@ -97,7 +97,7 @@ def test_payments_details_success_mocked(self):
9797
"PaRes": "sdkfhskdjfsdf..."
9898
}}
9999
self.adyen.client = self.test.create_client_from_file(200, request,
100-
"mocks/"
100+
"test/mocks/"
101101
"checkout/"
102102
"paymentsdetails"
103103
"-success.json")
@@ -115,7 +115,7 @@ def test_payments_details_error_mocked(self):
115115
"PaRes": "sdkfhskdjfsdf..."
116116
}}
117117
self.adyen.client = self.test.create_client_from_file(200, request,
118-
"mocks/"
118+
"test/mocks/"
119119
"checkout/"
120120
"paymentsdetails"
121121
"-error-invalid-"
@@ -138,7 +138,7 @@ def test_payments_session_success_mocked(self):
138138
'amount': {"value": "17408", "currency": "EUR"}}
139139

140140
self.adyen.client = self.test.create_client_from_file(200, request,
141-
"mocks/"
141+
"test/mocks/"
142142
"checkout/"
143143
"paymentsession"
144144
"-success.json")
@@ -157,7 +157,7 @@ def test_payments_session_error_mocked(self):
157157
'amount': {"value": "17408", "currency": "EUR"}}
158158

159159
self.adyen.client = self.test.create_client_from_file(200, request,
160-
"mocks/"
160+
"test/mocks/"
161161
"checkout/"
162162
"paymentsession"
163163
"-error-invalid-"
@@ -172,7 +172,7 @@ def test_payments_session_error_mocked(self):
172172
def test_payments_result_success_mocked(self):
173173
request = {"payload": "VALUE_YOU_GET_FROM_CHECKOUT_SDK"}
174174
self.adyen.client = self.test.create_client_from_file(200, request,
175-
"mocks/"
175+
"test/mocks/"
176176
"checkout/"
177177
"paymentsresult"
178178
"-success.json")
@@ -183,7 +183,7 @@ def test_payments_result_success_mocked(self):
183183
def test_payments_result_error_mocked(self):
184184
request = {"payload": "VALUE_YOU_GET_FROM_CHECKOUT_SDK"}
185185
self.adyen.client = self.test.create_client_from_file(200, request,
186-
"mocks/"
186+
"test/mocks/"
187187
"checkout/"
188188
"paymentsresult"
189189
"-error-invalid-"

test/CheckoutUtilityTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_origin_keys_success_mocked(self):
2424
}
2525

2626
self.ady.client = self.test.create_client_from_file(200, request,
27-
"mocks/"
27+
"test/mocks/"
2828
"checkoututility/"
2929
"originkeys"
3030
"-success.json")

test/DirectoryLookupTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_get_payment_methods(self):
4343
request['shopperLocale'] = "nl_NL"
4444
request['sessionValidity'] = time.strftime('%Y-%m-%dT%H:%M:%SZ')
4545
self.test.create_client_from_file(200, request,
46-
'mocks/hpp/'
46+
'test/mocks/hpp/'
4747
'directoryLookup-success.json')
4848
result = self.ady.hpp.directory_lookup(request)
4949
self.assertEqual(8, len(result.message['paymentMethods']))

test/ModificationTest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_capture_success(self):
2020
request['modificationAmount'] = {"value": "1234", "currency": "EUR"}
2121
request['originalReference'] = "YourOriginalReference"
2222
self.ady.client = self.test.create_client_from_file(200, request,
23-
'mocks/'
23+
'test/mocks/'
2424
'capture-success'
2525
'.json')
2626
result = self.ady.payment.capture(request)
@@ -33,7 +33,7 @@ def test_capture_error_167(self):
3333
request['modificationAmount'] = {"value": "1234", "currency": "EUR"}
3434
request['originalReference'] = "YourOriginalReference"
3535
self.ady.client = self.test.create_client_from_file(422, request,
36-
'mocks/'
36+
'test/mocks/'
3737
'capture-error-167'
3838
'.json')
3939
self.assertRaisesRegexp(
@@ -49,7 +49,7 @@ def test_cancel_or_refund_received(self):
4949
request['reference'] = "YourReference"
5050
request['originalReference'] = "YourOriginalReference"
5151
self.ady.client = self.test.create_client_from_file(200, request,
52-
'mocks/'
52+
'test/mocks/'
5353
'cancelOrRefund'
5454
'-received.json')
5555
result = self.ady.payment.cancel_or_refund(request)
@@ -63,7 +63,7 @@ def test_refund_received(self):
6363
request['originalReference'] = "YourOriginalReference"
6464
request['modificationAmount'] = {"value": "1234", "currency": "EUR"}
6565
self.ady.client = self.test.create_client_from_file(200, request,
66-
'mocks/'
66+
'test/mocks/'
6767
'refund-received'
6868
'.json')
6969
result = self.ady.payment.refund(request)

test/PaymentTest.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_authorise_success_mocked(self):
2828
"holderName": "John Doe"
2929
}
3030
self.adyen.client = self.test.create_client_from_file(200, request,
31-
'mocks/'
31+
'test/mocks/'
3232
'authorise'
3333
'-success'
3434
'.json')
@@ -68,7 +68,7 @@ def test_authorise_error010_mocked(self):
6868
"holderName": "John Doe"
6969
}
7070
self.adyen.client = self.test.create_client_from_file(403, request,
71-
'mocks/'
71+
'test/mocks/'
7272
'authorise-error'
7373
'-010'
7474
'.json')
@@ -87,7 +87,7 @@ def test_authorise_error_cvc_declined_mocked(self):
8787
"holderName": "John Doe"
8888
}
8989
self.adyen.client = self.test.create_client_from_file(200, request,
90-
'mocks/'
90+
'test/mocks/'
9191
'authorise'
9292
'-error-'
9393
'cvc-declined'
@@ -112,7 +112,7 @@ def test_authorise_success_3d_mocked(self):
112112
"acceptHeader": "YourAcceptHeader"
113113
}
114114
self.adyen.client = self.test.create_client_from_file(200, request,
115-
'mocks/'
115+
'test/mocks/'
116116
'authorise'
117117
'-success'
118118
'-3d.json')
@@ -132,7 +132,7 @@ def test_authorise_3d_success_mocked(self):
132132
"acceptHeader": "YourAcceptHeader"
133133
}
134134
self.adyen.client = self.test.create_client_from_file(200, request,
135-
'mocks/'
135+
'test/mocks/'
136136
'authorise3d-'
137137
'success.json')
138138
result = self.adyen.payment.authorise3d(request)
@@ -148,7 +148,7 @@ def test_authorise_cse_success_mocked(self):
148148
"card.encrypted.json": "YourCSEToken"
149149
}
150150
self.adyen.client = self.test.create_client_from_file(200, request,
151-
'mocks/'
151+
'test/mocks/'
152152
'authorise'
153153
'-success'
154154
'-cse.json')

test/RecurringTest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_list_recurring_details(self):
2121
request['recurring'] = {}
2222
request["recurring"]['contract'] = "RECURRING"
2323
self.ady.client = self.test.create_client_from_file(200, request,
24-
'mocks/'
24+
'test/mocks/'
2525
'recurring/'
2626
'listRecurring'
2727
'Details-'
@@ -41,7 +41,7 @@ def test_disable(self):
4141
request["shopperReference"] = "ref"
4242
request["recurringDetailReference"] = "12345678889"
4343
self.ady.client = self.test.create_client_from_file(200, request,
44-
'mocks/'
44+
'test/mocks/'
4545
'recurring/'
4646
'disable-success'
4747
'.json')
@@ -56,7 +56,7 @@ def test_disable_803(self):
5656
request["shopperReference"] = "ref"
5757
request["recurringDetailReference"] = "12345678889"
5858
self.ady.client = self.test.create_client_from_file(422, request,
59-
'mocks/'
59+
'test/mocks/'
6060
'recurring/'
6161
'disable-error-803'
6262
'.json')

0 commit comments

Comments
 (0)