test_push_notifications: Use responses module to mock HTTP responses.

This commit is contained in:
akshatdalton
2021-06-11 20:51:27 +00:00
committed by Tim Abbott
parent efbde2ad01
commit 1a76d06add
2 changed files with 132 additions and 112 deletions

View File

@@ -42,7 +42,7 @@ def send_to_push_bouncer(
* 400 errors from the push bouncer. Here there are 2 categories:
Our server failed to connect to the push bouncer (should throw)
vs. client-side errors like and invalid token.
vs. client-side errors like an invalid token.
"""
url = urllib.parse.urljoin(