@@ -64,7 +64,7 @@ def setUp(self):
6464 'currencies' : ['USD' ],
6565 'type' : 'INDIVIDUAL'
6666 }
67-
67+
6868 self .uploadSuccessData = {
6969 'token' : 'tkn-12345' ,
7070 "documents" : [{
@@ -84,12 +84,12 @@ def setUp(self):
8484 "status" : "INVALID" ,
8585 "reasons" : [
8686 {
87- "name" : "DOCUMENT_CORRECTION_REQUIRED" ,
88- "description" : "Document requires correction"
87+ "name" : "DOCUMENT_CORRECTION_REQUIRED" ,
88+ "description" : "Document requires correction"
8989 },
9090 {
91- "name" : "DOCUMENT_NOT_DECISIVE" ,
92- "description" : "Decision cannot be made based on document. Alternative document required"
91+ "name" : "DOCUMENT_NOT_DECISIVE" ,
92+ "description" : "Decision cannot be made based on document. Alternative document required"
9393 }
9494 ],
9595 "createdOn" : "2020-11-24T19:05:02"
@@ -220,7 +220,7 @@ def test_list_user_status_transitions_fail_need_params_invalid(self):
220220
221221 @mock .patch ('hyperwallet.utils.ApiClient._makeRequest' )
222222 def test_list_user_status_transitions_params_valid (self , mock_get ):
223-
223+
224224 options = {'transition' : 'test' }
225225 mock_get .return_value = {'data' : [self .data ]}
226226 response = self .api .listUserStatusTransitions ('token' , options )
@@ -810,7 +810,7 @@ def test_list_prepaid_cards_fail_need_params_invalid(self):
810810 self .api .listPrepaidCards ('token' , options )
811811
812812 self .assertEqual (exc .exception .message , 'Invalid filter' )
813-
813+
814814 @mock .patch ('hyperwallet.utils.ApiClient._makeRequest' )
815815 def test_list_prepaid_cards_params_valid (self , mock_get ):
816816
@@ -1892,7 +1892,7 @@ def test_list_venmo_accounts_fail_need_params_invalid(self):
18921892 self .api .listVenmoAccounts ('token' , options )
18931893
18941894 self .assertEqual (exc .exception .message , 'Invalid filter' )
1895-
1895+
18961896 @mock .patch ('hyperwallet.utils.ApiClient._makeRequest' )
18971897 def test_list_venmo_accounts_params_valid (self , mock_get ):
18981898
@@ -2101,7 +2101,7 @@ def test_get_payment_success(self, mock_get):
21012101 self .assertTrue (response .token , self .data .get ('token' ))
21022102
21032103 def test_list_payments_fail_need_params_invalid (self ):
2104-
2104+
21052105 options = {'currency' : 'test' , 'email' : 'test' }
21062106 with self .assertRaises (HyperwalletException ) as exc :
21072107 self .api .listPayments (options )
@@ -2585,7 +2585,6 @@ def test_list_transfer_method_configurations_params_valid(self, mock_get):
25852585
25862586 self .assertTrue (response [0 ].type , self .configuration .get ('type' ))
25872587
2588-
25892588 @mock .patch ('hyperwallet.utils.ApiClient._makeRequest' )
25902589 def test_list_transfer_method_configurations_success (self , mock_get ):
25912590
@@ -2677,7 +2676,6 @@ def test_uploadDocumentsForUserAndParse_success(self, mock_put):
26772676 self .assertEqual (response .token , self .uploadSuccessData .get ('token' ))
26782677 self .assertEqual (response .documents [0 ].type , self .uploadSuccessData .get ("documents" )[0 ].type )
26792678
2680-
26812679 @mock .patch ('hyperwallet.utils.ApiClient._makeRequest' )
26822680 def test_uploadDocumentsForUserAndParseRejection_success (self , mock_put ):
26832681
@@ -2869,7 +2867,7 @@ def test_list_transfer_status_transitions_fail_need_params_invalid(self):
28692867
28702868 options = {'transition' : 'test' , 'token' : 'test' }
28712869 with self .assertRaises (HyperwalletException ) as exc :
2872- self .api .listTransferStatusTransitions ('token' ,options )
2870+ self .api .listTransferStatusTransitions ('token' , options )
28732871
28742872 self .assertEqual (exc .exception .message , 'Invalid filter' )
28752873
@@ -2957,7 +2955,7 @@ def test_list_transfer_methods_fail_need_params_invalid(self):
29572955
29582956 options = {'type' : 'test' , 'token' : 'test' }
29592957 with self .assertRaises (HyperwalletException ) as exc :
2960- self .api .listTransferMethods ('token' ,options )
2958+ self .api .listTransferMethods ('token' , options )
29612959
29622960 self .assertEqual (exc .exception .message , 'Invalid filter' )
29632961
0 commit comments