zulip/zerver/tests
Hashir Sarwar ecd35b9565 push_notifications: Add support for setting counts in iOS.
This adds a new function `get_apns_badge_count()` to
fetch count value for a user push notification and
then sends that value with the APNs payload.

Once a message is read from the web app, the count is
decremented accordingly and a push notification with
`event: remove` is sent to the iOS clients.

Fixes #10271.
2020-06-16 11:26:36 -07:00
..
fixtures auth: Add Sign in with Apple support. 2020-06-09 17:29:35 -07:00
images emoji: Only resize custom emoji that need it. 2019-01-29 10:33:50 -08:00
__init__.py
test_alert_words.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_archive.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_attachments.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_audit_log.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_auth_backends.py lint: Fix a new % format string that should be fstring. 2020-06-15 00:12:08 -07:00
test_bots.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
test_bugdown.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
test_cache.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_camo.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_compatibility.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_create_video_call.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_custom_profile_data.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
test_decorators.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_digest.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_docs.py python: Guard against default value mutation with read-only types. 2020-06-13 15:31:27 -07:00
test_email_change.py confirmation: Pass realm rather than host to confirmation_url. 2020-06-14 23:27:22 -07:00
test_email_log.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_email_mirror.py email-mirror-postfix: Handle 8-bit messages correctly. 2020-06-14 20:24:06 -07:00
test_email_notifications.py email: Migrate to new Python ≥ 3.3 email API. 2020-06-14 20:24:06 -07:00
test_embedded_bot_system.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_event_queue.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_events.py api: Remove is_old_stream property from the stream objects. 2020-06-16 10:26:33 -07:00
test_external.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_gitter_importer.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_hipchat_importer.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_home.py python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
test_hotspots.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_i18n.py python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
test_import_export.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
test_integrations.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_integrations_dev_panel.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_internet.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_legacy_subject.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_link_embed.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_logging_handlers.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_management_commands.py email: Migrate to new Python ≥ 3.3 email API. 2020-06-14 20:24:06 -07:00
test_mattermost_importer.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_message_edit_notifications.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_messages.py python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
test_middleware.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_migrations.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_muting.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_narrow.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
test_new_users.py python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
test_onboarding.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_openapi.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
test_outgoing_webhook_interfaces.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_outgoing_webhook_system.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_populate_db.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_presence.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_push_notifications.py push_notifications: Add support for setting counts in iOS. 2020-06-16 11:26:36 -07:00
test_queue.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_queue_worker.py logging: Use logging.exception and exc_info for unexpected exceptions. 2020-06-14 23:27:22 -07:00
test_rate_limiter.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_reactions.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_realm.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
test_realm_domains.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_realm_emoji.py python: Convert percent formatting to .format for translated strings. 2020-06-15 16:24:46 -07:00
test_realm_export.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
test_realm_filters.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_redis_utils.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_report.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_retention.py deletion: Add support for bulk message deletion events. 2020-06-14 22:34:00 -07:00
test_service_bot_system.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_sessions.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_settings.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_signup.py python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
test_slack_importer.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_slack_message_conversion.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
test_soft_deactivation.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_subdomains.py python: Guard against default value mutation with read-only types. 2020-06-13 15:31:27 -07:00
test_submessage.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_subs.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
test_templates.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_thumbnail.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
test_timestamp.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_tornado.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_transfer.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_tutorial.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_type_debug.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_typing.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_unread.py test_unread: Change flag condition in get_mobile_push_notification_ids. 2020-06-14 20:43:04 -07:00
test_upload.py python: Convert percent formatting to .format for translated strings. 2020-06-15 16:24:46 -07:00
test_urls.py python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
test_user_groups.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_user_status.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_users.py python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
test_webhooks_common.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_widgets.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_zcommand.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_zephyr.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00