Skip to content

Commit fdc90f8

Browse files
committed
cleanup
1 parent f8c192a commit fdc90f8

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

push_notifications/apns_async.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,9 @@ def send_message(
135135
self,
136136
request: NotificationRequest,
137137
):
138-
print("a")
139138
loop = asyncio.get_event_loop()
140-
res1 = self.client.send_notification(request)
141-
print("b", res1)
142-
res = loop.run_until_complete(res1)
143-
print("c", res)
139+
routine = self.client.send_notification(request)
140+
res = loop.run_until_complete(routine)
144141
return res
145142

146143
def _create_notification_request_from_args(

tests/test_apns_async_push_payload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import pytest
66
from django.test import TestCase
77

8-
from aioapns.common import NotificationResult
98

109
try:
10+
from aioapns.common import NotificationResult
1111
from push_notifications.apns_async import TokenCredentials, apns_send_message
1212
except ModuleNotFoundError:
1313
# skipping because apns2 is not supported on python 3.10

0 commit comments

Comments
 (0)