Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/backend/apps/finances/tests/test_webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_send_email_on_invoice_payment_failed(self, send_email, webhook_event_fa
webhook_event.invoke_webhook_handlers()

send_email.apply_async.assert_called_with(
(subscription.customer.subscriber.email, notifications.SubscriptionErrorEmail.name, None)
(subscription.customer.subscriber.email, notifications.SubscriptionErrorEmail.name, {})
)

@patch('common.emails.send_email')
Expand All @@ -113,7 +113,7 @@ def test_send_email_on_invoice_payment_required(self, send_email, webhook_event_
webhook_event.invoke_webhook_handlers()

send_email.apply_async.assert_called_with(
(subscription.customer.subscriber.email, notifications.SubscriptionErrorEmail.name, None)
(subscription.customer.subscriber.email, notifications.SubscriptionErrorEmail.name, {})
)


Expand Down
2 changes: 1 addition & 1 deletion packages/backend/common/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, to, data=None):
self.data = {}

def send(self, due_date=None):
send_data = None
send_data = {}

serializer = self.get_serializer(data=self.data)
if serializer:
Expand Down