|
9 | 9 |
|
10 | 10 | class TestNotificationUrl(bunq_test.BunqSdkTestCase):
|
11 | 11 | # Getter string constants
|
12 |
| - _GET_PAYMENT = 'Payment' |
13 |
| - _GET_BUNQ_ME_TAB = 'BunqMeTab' |
14 |
| - _GET_CHAT_MESSAGE_ANNOUNCEMENT = 'ChatMessageAnnouncement' |
15 |
| - _GET_DRAFT_PAYMENT = 'DraftPayment' |
16 |
| - _GET_MASTER_CARD_ACTION = 'MasterCardAction' |
17 |
| - _GET_MONETARY_ACCOUNT_BANK = 'MonetaryAccountBank' |
18 |
| - _GET_PAYMENT_BATCH = 'PaymentBatch' |
19 |
| - _GET_REQUEST_INQUIRY = 'RequestInquiry' |
20 |
| - _GET_REQUEST_RESPONSE = 'RequestResponse' |
21 |
| - _GET_SCHEDULE_PAYMENT = 'ScheduledPayment' |
22 |
| - _GET_SCHEDULE_INSTANCE = 'ScheduledInstance' |
23 |
| - _GET_SHARE_INVITE_BANK_INQUIRY = 'ShareInviteBankInquiry' |
24 |
| - _GET_SHARE_INVITE_BANK_RESPONSE = 'ShareInviteBankResponse' |
25 |
| - |
26 | 12 | # Assertion errors
|
27 | 13 | _ASSERT_SHOULD_NOT_REACH_THIS_CODE_ERROR = \
|
28 | 14 | 'Something super weird just happen'
|
29 | 15 | _ASSERT_JSON_DECODE_ERROR = \
|
30 | 16 | 'Might be that the JSON file is not a valid json.'
|
31 | 17 | _ASSERT_OBJECT_IS_NULL_ERROR = 'Object seems to be null.'
|
| 18 | + _GETTER_PAYMENT = 'Payment' |
| 19 | + _GETTER_BUNQ_ME_TAB = 'BunqMeTab' |
| 20 | + _GETTER_CHAT_MESSAGE_ANNOUNCEMENT = 'ChatMessageAnnouncement' |
| 21 | + _GETTER_DRAFT_PAYMENT = 'DraftPayment' |
| 22 | + _GETTER_MASTER_CARD_ACTION = 'MasterCardAction' |
| 23 | + _GETTER_MONETARY_ACCOUNT_BANK = 'MonetaryAccountBank' |
| 24 | + _GETTER_PAYMENT_BATCH = 'PaymentBatch' |
| 25 | + _GETTER_REQUEST_INQUIRY = 'RequestInquiry' |
| 26 | + _GETTER_REQUEST_RESPONSE = 'RequestResponse' |
| 27 | + _GETTER_SCHEDULE_PAYMENT = 'ScheduledPayment' |
| 28 | + _GETTER_SCHEDULE_INSTANCE = 'ScheduledInstance' |
| 29 | + _GETTER_SHARE_INVITE_BANK_INQUIRY = 'ShareInviteBankInquiry' |
| 30 | + _GETTER_SHARE_INVITE_BANK_RESPONSE = 'ShareInviteBankResponse' |
32 | 31 |
|
33 | 32 | # Model json paths constants.
|
34 | 33 | BASE_PATH_JSON_MODEL = '../../../assets/NotficationUrlJsons'
|
@@ -136,89 +135,89 @@ def test_mutation_model(self):
|
136 | 135 | self.execute_notification_url_test(
|
137 | 136 | self.JSON_PATH_MUTATION_MODEL,
|
138 | 137 | endpoint.Payment.__name__,
|
139 |
| - self._GET_PAYMENT |
| 138 | + self._GETTER_PAYMENT |
140 | 139 | )
|
141 | 140 |
|
142 | 141 | def test_bunq_me_tab_model(self):
|
143 | 142 | self.execute_notification_url_test(
|
144 | 143 | self.JSON_PATH_BUNQ_ME_TAB_MODEL,
|
145 | 144 | endpoint.BunqMeTab.__name__,
|
146 |
| - self._GET_BUNQ_ME_TAB |
| 145 | + self._GETTER_BUNQ_ME_TAB |
147 | 146 | )
|
148 | 147 |
|
149 | 148 | def test_chat_message_announcement_model(self):
|
150 | 149 | self.execute_notification_url_test(
|
151 | 150 | self.JSON_PATH_CHAT_MESSAGE_ANNOUNCEMENT_MODEL,
|
152 | 151 | endpoint.ChatMessageAnnouncement.__name__,
|
153 |
| - self._GET_CHAT_MESSAGE_ANNOUNCEMENT |
| 152 | + self._GETTER_CHAT_MESSAGE_ANNOUNCEMENT |
154 | 153 | )
|
155 | 154 |
|
156 | 155 | def test_draft_payment_model(self):
|
157 | 156 | self.execute_notification_url_test(
|
158 | 157 | self.JSON_PATH_DRAFT_PAYMENT_MODEL,
|
159 | 158 | endpoint.DraftPayment.__name__,
|
160 |
| - self._GET_DRAFT_PAYMENT |
| 159 | + self._GETTER_DRAFT_PAYMENT |
161 | 160 | )
|
162 | 161 |
|
163 | 162 | def test_mastercard_action(self):
|
164 | 163 | self.execute_notification_url_test(
|
165 | 164 | self.JSON_PATH_MASTER_CARD_ACTION_MODEL,
|
166 | 165 | endpoint.MasterCardAction.__name__,
|
167 |
| - self._GET_MASTER_CARD_ACTION |
| 166 | + self._GETTER_MASTER_CARD_ACTION |
168 | 167 | )
|
169 | 168 |
|
170 | 169 | def test_monetary_account_bank_model(self):
|
171 | 170 | self.execute_notification_url_test(
|
172 | 171 | self.JSON_PATH_MONETARY_ACCOUNT_BANK_MODEL,
|
173 | 172 | endpoint.MonetaryAccountBank.__name__,
|
174 |
| - self._GET_MONETARY_ACCOUNT_BANK |
| 173 | + self._GETTER_MONETARY_ACCOUNT_BANK |
175 | 174 | )
|
176 | 175 |
|
177 | 176 | def test_payment_batch_model(self):
|
178 | 177 | self.execute_notification_url_test(
|
179 | 178 | self.JSON_PATH_PAYMENT_BATCH_MODEL,
|
180 | 179 | endpoint.PaymentBatch.__name__,
|
181 |
| - self._GET_PAYMENT_BATCH |
| 180 | + self._GETTER_PAYMENT_BATCH |
182 | 181 | )
|
183 | 182 |
|
184 | 183 | def test_request_inquiry_model(self):
|
185 | 184 | self.execute_notification_url_test(
|
186 | 185 | self.JSON_PATH_REQUEST_INQUIRY_MODEL,
|
187 | 186 | endpoint.RequestInquiry.__name__,
|
188 |
| - self._GET_REQUEST_INQUIRY |
| 187 | + self._GETTER_REQUEST_INQUIRY |
189 | 188 | )
|
190 | 189 |
|
191 | 190 | def test_request_response_model(self):
|
192 | 191 | self.execute_notification_url_test(
|
193 | 192 | self.JSON_PATH_REQUEST_RESPONSE_MODEL,
|
194 | 193 | endpoint.RequestResponse.__name__,
|
195 |
| - self._GET_REQUEST_RESPONSE |
| 194 | + self._GETTER_REQUEST_RESPONSE |
196 | 195 | )
|
197 | 196 |
|
198 | 197 | def test_scheduled_payment_model(self):
|
199 | 198 | self.execute_notification_url_test(
|
200 | 199 | self.JSON_PATH_SCHEDULE_PAYMENT_MODEL,
|
201 | 200 | endpoint.SchedulePayment.__name__,
|
202 |
| - self._GET_SCHEDULE_PAYMENT |
| 201 | + self._GETTER_SCHEDULE_PAYMENT |
203 | 202 | )
|
204 | 203 |
|
205 | 204 | def test_scheduled_instance_model(self):
|
206 | 205 | self.execute_notification_url_test(
|
207 | 206 | self.JSON_PATH_SCHEDULE_INSTANCE_MODEL,
|
208 | 207 | endpoint.ScheduleInstance.__name__,
|
209 |
| - self._GET_SCHEDULE_INSTANCE |
| 208 | + self._GETTER_SCHEDULE_INSTANCE |
210 | 209 | )
|
211 | 210 |
|
212 | 211 | def test_share_invite_bank_inquiry(self):
|
213 | 212 | self.execute_notification_url_test(
|
214 | 213 | self.JSON_PATH_SHARE_INVITE_BANK_INQUIRY_MODEL,
|
215 | 214 | endpoint.ShareInviteBankInquiry.__name__,
|
216 |
| - self._GET_SHARE_INVITE_BANK_INQUIRY |
| 215 | + self._GETTER_SHARE_INVITE_BANK_INQUIRY |
217 | 216 | )
|
218 | 217 |
|
219 | 218 | def test_share_invite_bank_response(self):
|
220 | 219 | self.execute_notification_url_test(
|
221 | 220 | self.JSON_PATH_SHARE_INVITE_BANK_RESPONSE_MODEL,
|
222 | 221 | endpoint.ShareInviteBankResponse.__name__,
|
223 |
| - self._GET_SHARE_INVITE_BANK_RESPONSE |
| 222 | + self._GETTER_SHARE_INVITE_BANK_RESPONSE |
224 | 223 | )
|
0 commit comments