Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1681 from akatsoulas/basket-tests
Browse files Browse the repository at this point in the history
Fix basket tests.
  • Loading branch information
akatsoulas committed Apr 3, 2017
2 parents 737a79e + 1cf11be commit bfa6c31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mozillians/users/tests/test_tasks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from datetime import datetime

from django.conf import settings
from django.contrib.auth.models import User
from django.test.utils import override_settings

Expand Down Expand Up @@ -225,6 +226,7 @@ def test_subscribe_user_task_no_email_no_newsletters(self, subscribe_mock):
subscribe_user_task(result=result, email=None)
subscribe_mock.assert_called_with('result_email@example.com', ['mozilla-phone'],
sync='N', trigger_welcome='N',
source_url=settings.SITE_URL,
api_key='basket_api_key')

@patch('mozillians.users.tasks.basket.subscribe')
Expand Down Expand Up @@ -253,6 +255,7 @@ def test_subscribe_user_task(self, subscribe_mock):
subscribe_user_task(**kwargs)
subscribe_mock.assert_called_with('foo@example.com', ['foobar'],
sync='N', trigger_welcome='N',
source_url=settings.SITE_URL,
api_key='basket_api_key')

@patch('mozillians.users.tasks.basket.subscribe')
Expand All @@ -266,6 +269,7 @@ def test_subscribe_user_task_no_result(self, subscribe_mock):
subscribe_user_task(**kwargs)
subscribe_mock.assert_called_with('foo@example.com', ['mozilla-phone'],
sync='N', trigger_welcome='N',
source_url=settings.SITE_URL,
api_key='basket_api_key')

@patch('mozillians.users.tasks.subscribe_user_task.retry')
Expand Down

0 comments on commit bfa6c31

Please sign in to comment.