Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_push_notifications: Sort pm_users as integers, not strings.
Tim Abbotta915e1cc265c
diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.pyindex 4d6cd13119e..a8f802ab4e3 100644--- a/zerver/tests/test_push_notifications.py+++ b/zerver/tests/test_push_notifications.py@@ -1622,8 +1622,9 @@ class TestGetAPNsPayload(PushNotificationTest):"message_ids": [message.id],"recipient_type": "private","pm_users": ",".join(- sorted(- str(s.user_profile_id)+ str(user_profile_id)+ for user_profile_id in sorted(+ s.user_profile_idfor s in Subscription.objects.filter(recipient=message.recipient))),@@ -1788,8 +1789,9 @@ class TestGetAPNsPayload(PushNotificationTest):"message_ids": [message.id],"recipient_type": "private","pm_users": ",".join(- sorted(- str(s.user_profile_id)+ str(user_profile_id)+ for user_profile_id in sorted(+ s.user_profile_idfor s in Subscription.objects.filter(recipient=message.recipient))),