Skip to content

Commit

Permalink
remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
pomali committed Dec 8, 2023
1 parent a5c28e6 commit b9647e4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions push_notifications/apns_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ def send_message(
self,
request: NotificationRequest,
):
print("Sending {} to {}".format(request, request.device_token))

loop = asyncio.get_event_loop()
res1 = self.client.send_notification(request)
res = loop.run_until_complete(res1)
Expand Down Expand Up @@ -196,7 +194,6 @@ def _create_client(
if creds is None:
creds = self._get_credentials(application_id)

Check warning on line 195 in push_notifications/apns_async.py

View check run for this annotation

Codecov / codecov/patch

push_notifications/apns_async.py#L195

Added line #L195 was not covered by tests

print(creds)
client = APNs(

Check warning on line 197 in push_notifications/apns_async.py

View check run for this annotation

Codecov / codecov/patch

push_notifications/apns_async.py#L197

Added line #L197 was not covered by tests
**asdict(creds),
topic=topic, # Bundle ID
Expand Down Expand Up @@ -260,7 +257,7 @@ def apns_send_message(
apns_service = APNsService(

Check warning on line 257 in push_notifications/apns_async.py

View check run for this annotation

Codecov / codecov/patch

push_notifications/apns_async.py#L256-L257

Added lines #L256 - L257 were not covered by tests
application_id=application_id, creds=creds, topic=topic
)
print(badge)

request = apns_service._create_notification_request_from_args(

Check warning on line 261 in push_notifications/apns_async.py

View check run for this annotation

Codecov / codecov/patch

push_notifications/apns_async.py#L261

Added line #L261 was not covered by tests
registration_id,
alert,
Expand All @@ -280,7 +277,6 @@ def apns_send_message(
registration_id=registration_id
).update(active=False)
raise APNSServerError(status=res.description)
print(res)
except ConnectionError as e:
raise APNSServerError(status=e.__class__.__name__)

Check warning on line 281 in push_notifications/apns_async.py

View check run for this annotation

Codecov / codecov/patch

push_notifications/apns_async.py#L279-L281

Added lines #L279 - L281 were not covered by tests

Expand Down

0 comments on commit b9647e4

Please sign in to comment.