Skip to content

Commit 01d4282

Browse files
author
brianmc
committed
updated test with check for previous txn
1 parent 42ce3c2 commit 01d4282

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test-runner.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,13 @@ def update_customer_payment_profile(self):
228228
modl = imp.load_source('modulename', 'CustomerProfiles/create-customer-payment-profile.py')
229229
response = modl.create_customer_payment_profile(customerProfileId)
230230

231-
modl = imp.load_source('modulename', 'CustomerProfiles/update-customer-payment-profile.py')
232-
response = modl.update_customer_payment_profile(customerProfileId, str(response.customerPaymentProfileId))
231+
if hasattr(response, 'customerProfileId') == True:
232+
modl = imp.load_source('modulename', 'CustomerProfiles/update-customer-payment-profile.py')
233+
response = modl.update_customer_payment_profile(customerProfileId, str(response.customerPaymentProfileId))
233234

234-
#delete newly create customer profile
235-
modl = imp.load_source('modulename', 'CustomerProfiles/delete-customer-profile.py')
236-
modl.delete_customer_profile(customerProfileId)
235+
#delete newly create customer profile
236+
modl = imp.load_source('modulename', 'CustomerProfiles/delete-customer-profile.py')
237+
modl.delete_customer_profile(customerProfileId)
237238

238239
return response
239240

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy