File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -135,12 +135,9 @@ def send_message(
135
135
self ,
136
136
request : NotificationRequest ,
137
137
):
138
- print ("a" )
139
138
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 )
144
141
return res
145
142
146
143
def _create_notification_request_from_args (
Original file line number Diff line number Diff line change 5
5
import pytest
6
6
from django .test import TestCase
7
7
8
- from aioapns .common import NotificationResult
9
8
10
9
try :
10
+ from aioapns .common import NotificationResult
11
11
from push_notifications .apns_async import TokenCredentials , apns_send_message
12
12
except ModuleNotFoundError :
13
13
# skipping because apns2 is not supported on python 3.10
You can’t perform that action at this time.
0 commit comments