@@ -59,7 +59,10 @@ class TestNotificationUrl(bunq_test.BunqSdkTestCase):
59
59
# Model root key.
60
60
_KEY_NOTIFICATION_URL_MODEL = 'NotificationUrl'
61
61
62
- def execute_test (self , file_path , class_name , getter_name ):
62
+ def execute_notification_url_test (self ,
63
+ file_path ,
64
+ class_name ,
65
+ getter_name ):
63
66
"""
64
67
:type file_path: str
65
68
:type class_name: str
@@ -130,91 +133,91 @@ def getNotificationUrl(self, file_path):
130
133
)
131
134
132
135
def test_mutation_model (self ):
133
- self .execute_test (
136
+ self .execute_notification_url_test (
134
137
self .JSON_PATH_MUTATION_MODEL ,
135
138
endpoint .Payment .__name__ ,
136
139
self ._GET_PAYMENT
137
140
)
138
141
139
142
def test_bunq_me_tab_model (self ):
140
- self .execute_test (
143
+ self .execute_notification_url_test (
141
144
self .JSON_PATH_BUNQ_ME_TAB_MODEL ,
142
145
endpoint .BunqMeTab .__name__ ,
143
146
self ._GET_BUNQ_ME_TAB
144
147
)
145
148
146
149
def test_chat_message_announcement_model (self ):
147
- self .execute_test (
150
+ self .execute_notification_url_test (
148
151
self .JSON_PATH_CHAT_MESSAGE_ANNOUNCEMENT_MODEL ,
149
152
endpoint .ChatMessageAnnouncement .__name__ ,
150
153
self ._GET_CHAT_MESSAGE_ANNOUNCEMENT
151
154
)
152
155
153
156
def test_draft_payment_model (self ):
154
- self .execute_test (
157
+ self .execute_notification_url_test (
155
158
self .JSON_PATH_DRAFT_PAYMENT_MODEL ,
156
159
endpoint .DraftPayment .__name__ ,
157
160
self ._GET_DRAFT_PAYMENT
158
161
)
159
162
160
163
def test_mastercard_action (self ):
161
- self .execute_test (
164
+ self .execute_notification_url_test (
162
165
self .JSON_PATH_MASTER_CARD_ACTION_MODEL ,
163
166
endpoint .MasterCardAction .__name__ ,
164
167
self ._GET_MASTER_CARD_ACTION
165
168
)
166
169
167
170
def test_monetary_account_bank_model (self ):
168
- self .execute_test (
171
+ self .execute_notification_url_test (
169
172
self .JSON_PATH_MONETARY_ACCOUNT_BANK_MODEL ,
170
173
endpoint .MonetaryAccountBank .__name__ ,
171
174
self ._GET_MONETARY_ACCOUNT_BANK
172
175
)
173
176
174
177
def test_payment_batch_model (self ):
175
- self .execute_test (
178
+ self .execute_notification_url_test (
176
179
self .JSON_PATH_PAYMENT_BATCH_MODEL ,
177
180
endpoint .PaymentBatch .__name__ ,
178
181
self ._GET_PAYMENT_BATCH
179
182
)
180
183
181
184
def test_request_inquiry_model (self ):
182
- self .execute_test (
185
+ self .execute_notification_url_test (
183
186
self .JSON_PATH_REQUEST_INQUIRY_MODEL ,
184
187
endpoint .RequestInquiry .__name__ ,
185
188
self ._GET_REQUEST_INQUIRY
186
189
)
187
190
188
191
def test_request_response_model (self ):
189
- self .execute_test (
192
+ self .execute_notification_url_test (
190
193
self .JSON_PATH_REQUEST_RESPONSE_MODEL ,
191
194
endpoint .RequestResponse .__name__ ,
192
195
self ._GET_REQUEST_RESPONSE
193
196
)
194
197
195
198
def test_scheduled_payment_model (self ):
196
- self .execute_test (
199
+ self .execute_notification_url_test (
197
200
self .JSON_PATH_SCHEDULE_PAYMENT_MODEL ,
198
201
endpoint .SchedulePayment .__name__ ,
199
202
self ._GET_SCHEDULE_PAYMENT
200
203
)
201
204
202
205
def test_scheduled_instance_model (self ):
203
- self .execute_test (
206
+ self .execute_notification_url_test (
204
207
self .JSON_PATH_SCHEDULE_INSTANCE_MODEL ,
205
208
endpoint .ScheduleInstance .__name__ ,
206
209
self ._GET_SCHEDULE_INSTANCE
207
210
)
208
211
209
212
def test_share_invite_bank_inquiry (self ):
210
- self .execute_test (
213
+ self .execute_notification_url_test (
211
214
self .JSON_PATH_SHARE_INVITE_BANK_INQUIRY_MODEL ,
212
215
endpoint .ShareInviteBankInquiry .__name__ ,
213
216
self ._GET_SHARE_INVITE_BANK_INQUIRY
214
217
)
215
218
216
219
def test_share_invite_bank_response (self ):
217
- self .execute_test (
220
+ self .execute_notification_url_test (
218
221
self .JSON_PATH_SHARE_INVITE_BANK_RESPONSE_MODEL ,
219
222
endpoint .ShareInviteBankResponse .__name__ ,
220
223
self ._GET_SHARE_INVITE_BANK_RESPONSE
0 commit comments