From e827fa12ae30eb423e2ef9888fecfbcddac93ecb Mon Sep 17 00:00:00 2001 From: vcai122 Date: Sun, 17 Nov 2024 03:15:09 -0500 Subject: [PATCH] stupid lint --- backend/tests/user/test_notifs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"}