more payment view coverage tests
This commit is contained in:
@@ -58,10 +58,11 @@ from rowers.models import Rower,PaidPlan, CoachingGroup
|
||||
from rowers.utils import ProcessorCustomerError
|
||||
|
||||
def process_webhook(notification):
|
||||
with open('braintreewebhooks.log','a') as f:
|
||||
t = time.localtime()
|
||||
timestamp = time.strftime('%b-%d-%Y_%H%M', t)
|
||||
f.write(timestamp+' '+notification.kind+'\n')
|
||||
if not settings.TESTING: # pragma: no cover
|
||||
with open('braintreewebhooks.log','a') as f:
|
||||
t = time.localtime()
|
||||
timestamp = time.strftime('%b-%d-%Y_%H%M', t)
|
||||
f.write(timestamp+' '+notification.kind+'\n')
|
||||
if notification.kind == 'subscription_charged_successfully':
|
||||
return send_invoice(notification.subscription)
|
||||
if notification.kind == 'subscription_canceled':
|
||||
|
||||
Reference in New Issue
Block a user