Skip to content

Commit 63a2bc1

Browse files
committed
Remove an inherently broken test
See: https://stackoverflow.com/questions/11378004
1 parent bf3ba92 commit 63a2bc1

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

tests/test_gcm_push_payload.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,6 @@ def test_push_payload_params(self):
2020
b"data.message=Hello+world&delay_while_idle=1&registration_id=abc&time_to_live=3600",
2121
"application/x-www-form-urlencoded;charset=UTF-8")
2222

23-
def test_push_nested_payload(self):
24-
with mock.patch("push_notifications.gcm._gcm_send", return_value=GCM_JSON_RESPONSE) as p:
25-
payload = {
26-
"message": "Hello world",
27-
"extra": {
28-
"key0": ["value0_0", "value0_1", "value0_2"],
29-
"key1": "value1",
30-
"key2": {"key2_0": "value2_0"}
31-
}
32-
}
33-
payload_string = json.dumps(payload, separators=(",", ":"), sort_keys=True).encode("utf-8")
34-
gcm_send_message("abc", payload)
35-
p.assert_called_once_with(
36-
b'{"data":' + payload_string + b',"registration_ids":["abc"]}',
37-
"application/json")
38-
3923
def test_bulk_push_payload(self):
4024
with mock.patch("push_notifications.gcm._gcm_send", return_value=GCM_JSON_RESPONSE) as p:
4125
gcm_send_bulk_message(["abc", "123"], {"message": "Hello world"})

0 commit comments

Comments
 (0)