Skip to content

Commit

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


def mock_client(is_dev):
return MockAPNsClient()

Expand Down Expand Up @@ -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(
[
Expand Down Expand Up @@ -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"}
Expand Down

0 comments on commit e827fa1

Please sign in to comment.