diff --git a/backend/tests/user/test_notifs.py b/backend/tests/user/test_notifs.py index 61fd3c9f..097c971c 100644 --- a/backend/tests/user/test_notifs.py +++ b/backend/tests/user/test_notifs.py @@ -33,6 +33,7 @@ def send_notification_batch(self, notifications, topic): del notifications, topic pass + def mock_client(is_dev): return MockAPNsClient() @@ -83,6 +84,7 @@ class TestNotificationService(TransactionTestCase): def setUp(self): from pennmobile.celery import app + app.conf.task_always_eager = True NotificationService.objects.bulk_create( [ @@ -157,7 +159,6 @@ def setUp(self): initialize_b2b() @mock.patch("user.notifications.IOSNotificationWrapper.get_client", mock_client) - def test_failed_notif(self): # missing title payload = {"body": ":D", "service": "PENN_MOBILE"}