zulip/zerver/tests
Aman Agrawal e22885a6bf push_notifications: Return if push_notify already active.
If the push_notification for the UserMessage is already active,
we don't send any push notification to the user. This may
happen due to race conditions.

Added and fixed test cases affected by this.
2020-07-14 00:35:29 -07:00
..
fixtures markdown: Remove !avatar() and !gravatar() syntax. 2020-07-07 10:39:44 -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 models: Change attachment.size to not be nullable. 2020-06-20 13:15:02 -07:00
test_audit_log.py tests: Move MiscMessageTest to test_audit_log.py. 2020-07-08 13:53:56 -07:00
test_auth_backends.py test_auth_backends: Fix strict_optional_errors. 2020-07-06 11:25:48 -07:00
test_bots.py test_service_bot_system: Fix strict_optional errors. 2020-07-06 11:25:48 -07:00
test_cache.py cache: Fix type: ignore issues. 2020-07-01 10:51:15 -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 calls: Add Big Blue Button as a Video Call Provider. 2020-06-22 16:19:07 -07:00
test_custom_profile_data.py refactor: Rename convert to markdown_convert. 2020-07-06 12:39:59 -07:00
test_decorators.py test_decorators: Fix strict_optional errors. 2020-07-06 11:25:48 -07:00
test_digest.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_docs.py billing: Add option to request a sponsorship in /upgrade. 2020-07-01 16:45:38 -07:00
test_email_change.py emails: Add a custom header specifying the organization when possible. 2020-06-28 13:33:02 -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 emails: Add a custom header specifying the organization when possible. 2020-06-28 13:33:02 -07:00
test_embedded_bot_system.py test_embedded_bot_system: Replace type: ignore annotations with an assert. 2020-06-23 11:29:54 -07:00
test_event_queue.py pointer tests: Use restart for test_collapse_event. 2020-06-26 10:02:37 -07:00
test_event_system.py tests: Extract test_event_system.py. 2020-06-29 07:55:11 -04:00
test_events.py audit_log: Log RealmAuditLog in do_set_realm_property. 2020-07-06 17:38:19 -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 test_hipchat_importer: Fix a type: ignore issue. 2020-06-30 18:58:23 -07:00
test_home.py audit_log: Log acting_user in do_change_logo_source. 2020-07-06 17:24:18 -07:00
test_hotspots.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_i18n.py tests: Make all tests inherit ZulipTestCase. 2020-07-01 10:48:12 -07:00
test_import_export.py audit_log: Log acting_user in do_change_logo_source. 2020-07-06 17:24:18 -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 refactor: Rename zerver.lib.bugdown to zerver.lib.markdown . 2020-06-26 17:08:37 -07:00
test_logging_handlers.py test_logging_handlers: Fix strict_optional errors. 2020-07-06 11:25:48 -07:00
test_management_commands.py tests: Make all tests inherit ZulipTestCase. 2020-07-01 10:48:12 -07:00
test_markdown.py markdown: Assert twitter previews render inside spoilers. 2020-07-13 12:24:32 -07:00
test_mattermost_importer.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_message_dict.py tests: Move SewMessageAndReactionTest to test_message_dict.py. 2020-07-07 17:14:10 -07:00
test_message_edit.py tests: Move DeleteMessageTest class to test_message_edit.py. 2020-07-06 16:36:36 -07:00
test_message_edit_notifications.py push_notif: Don't clear notif if stream notif enabled. 2020-06-28 11:51:50 -07:00
test_message_fetch.py tests: Move test_near_pm_message_url to test_message_fetch.py. 2020-07-08 14:00:05 -07:00
test_message_flags.py tests: Move test_is_private_flag_not_leaked to test_message_flags.py. 2020-07-08 14:00:05 -07:00
test_message_send.py tests: Move CheckMessageTest to test_message_send.py. 2020-07-07 17:14:10 -07:00
test_message_topics.py tests: Extract test_message_topics.py for topic tests. 2020-07-06 16:36:36 -07:00
test_messages.py tests: Move test_near_pm_message_url to test_message_fetch.py. 2020-07-08 14:00:05 -07:00
test_middleware.py refactor: Rename bugdown words to markdown in stats related functions. 2020-06-26 17:20:40 -07:00
test_migrations.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_mirror_users.py tests: Move test_create_mirror_user_despite_race to test_mirror_users.py. 2020-07-06 16:36:36 -07:00
test_muting.py mypy: Use tuples for muted_topics. 2020-06-24 15:01:57 -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 openapi: Use third-party validator for schema validation. 2020-07-01 11:21:41 -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 test_outgoing_webhook_system.py: Fix strict_optional errors. 2020-07-06 11:25:48 -07:00
test_populate_db.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_presence.py test_presence: Switch data setup from pointer to message flags. 2020-06-27 16:44:38 -07:00
test_push_notifications.py push_notifications: Return if push_notify already active. 2020-07-14 00:35:29 -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 test_realm: Fix strict_optional errors. 2020-07-06 11:25:48 -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 retention: Add restore_retention_policy_deletions_for_stream function. 2020-06-24 10:40:38 -07:00
test_service_bot_system.py test_service_bot_system: Fix strict_optional errors. 2020-07-06 11:25:48 -07:00
test_sessions.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_settings.py settings: Add automatic theme detection feature. 2020-06-21 01:09:01 -07:00
test_signup.py tests: Move test_auto_subbed_to_personals test to test_signup.py. 2020-07-08 13:59:56 -07:00
test_slack_importer.py test_slack_importer: Fix strict_optional errors. 2020-07-06 11:25:48 -07:00
test_slack_message_conversion.py tests: Remove slow tests detection. 2020-06-30 23:34:53 -07:00
test_soft_deactivation.py tests: Move SoftDeactivationMessageTest to test_soft_deactivation.py. 2020-07-06 16:36:36 -07:00
test_subdomains.py tests: Make all tests inherit ZulipTestCase. 2020-07-01 10:48:12 -07:00
test_submessage.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_subs.py tests: Move NoRecipientIDsTest to test_subs.py. 2020-07-08 13:51:32 -07:00
test_templates.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_thumbnail.py refactor: Rename remaining bugdown word to markdown in .py files. 2020-06-29 15:03:20 -07:00
test_timestamp.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_tornado.py tests: Avoid unchecked casts. 2020-06-22 17:18:19 -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 tests: Make all tests inherit ZulipTestCase. 2020-07-01 10:48:12 -07:00
test_typing.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_upload.py audit_log: Log acting_user in do_change_avatar_fields. 2020-07-06 17:24:18 -07:00
test_urls.py tests: Make all tests inherit ZulipTestCase. 2020-07-01 10:48:12 -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 pointer: Remove pointer from API and page_params. 2020-06-27 16:44:38 -07:00
test_webhooks_common.py decorator: Fix type of signature-changing decorators. 2020-06-23 11:29:54 -07:00
test_widgets.py widgets: Make type checks more explicit. 2020-06-25 13:52:59 -07:00
test_zcommand.py settings: Add automatic theme detection feature. 2020-06-21 01:09:01 -07:00
test_zephyr.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00