Skip to content

Commit

Permalink
plz fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vcai122 committed Nov 17, 2024
1 parent da8a114 commit 34d044a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/tests/user/test_notifs.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def send_notification_batch(self, notifications, topic):
del notifications, topic
pass


def mock_client(is_dev):
return MockAPNsClient()

Expand Down Expand Up @@ -83,6 +82,8 @@ class TestNotificationService(TransactionTestCase):
"""Tests for CRUD Notification Settings"""

def setUp(self):
from pennmobile.celery import app
app.conf.task_always_eager = True
NotificationService.objects.bulk_create(
[
NotificationService(name="PENN_MOBILE"),
Expand Down Expand Up @@ -156,6 +157,7 @@ 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"}
Expand Down

0 comments on commit 34d044a

Please sign in to comment.