Private
Public Access
1
0

more coverage

This commit is contained in:
Sander Roosendaal
2021-12-17 11:29:04 +01:00
parent 1c045f773a
commit 89c70bec6e
6 changed files with 24 additions and 24 deletions

View File

@@ -73,7 +73,7 @@ def process_webhook(notification):
if notification.kind == 'subscription_charged_successfully':
subscription = notification.subscription
rs = Rower.objects.filter(subscription_id=subscription.id)
if rs.count() == 0:
if rs.count() == 0: # pragma: no cover
dologging('braintreewebhooks.log','Could not find rowers with subscription ID {id}'.format(
id=subscription.id
))
@@ -209,7 +209,7 @@ def make_payment(rower,data):
if 'plan' in data:
theplan = data['plan']
additional_text = 'Rowsandall Purchase Plan nr {theplan}'.format(theplan=theplan)
else:
else: # pragma: no cover
additional_text = 'Rowsandall Purchase'
result = gateway.transaction.sale({