more coverage
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user