zulip/zerver/tests
Abhijeet Prasad Bodas 4d24499317 android notifications: Differentiate personal vs wildcard mentions.
The code to also notify for wildcard mentions was added in
0ed0bb6828.

But that showed the same text for both the cases. This commit fixes
that.

This is more of change for correctness. The mobile app currently does
not rely on this text for notifications, but constructs the text by
itself from the data in the payload.

This also fixes the "stream_push_notify" case to consistently show
a `#` before the stream name.
2021-07-08 10:03:07 -07:00
..
fixtures data_import: Add import attachments support for Mattermost. 2021-07-02 11:19:45 -07:00
images
__init__.py
test_alert_words.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_archive.py do_make_stream_web_public: Update all affected fields. 2021-05-20 15:23:19 -07:00
test_attachments.py
test_audit_log.py populate_db: Use do_create_realm for creating zulip realm. 2021-07-06 17:37:43 -07:00
test_auth_backends.py saml: Don't raise AssertionError if no name is provided in SAMLResponse. 2021-07-07 09:23:21 -07:00
test_bots.py tests: Assert num_events in tornado_redirected_to_list. 2021-05-27 13:16:22 -07:00
test_cache.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_compatibility.py compatibility: Shift functions to new module. 2021-06-05 07:33:25 -07:00
test_create_video_call.py docs: Correct Big Blue Button to BigBlueButton. 2021-07-05 16:59:00 -07:00
test_custom_profile_data.py markdown: Refactor out additional properties added to Message. 2021-06-24 18:14:53 -07:00
test_data_types.py
test_decorators.py exceptions: Add AccessDeniedError. 2021-07-05 11:02:09 -07:00
test_digest.py
test_docs.py apidocs: Standardize parameters text for get-own-user. 2021-06-24 10:37:56 -07:00
test_drafts.py python: Strip leading and trailing spaces from docstrings. 2021-05-07 22:42:39 -07:00
test_email_change.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_email_log.py
test_email_mirror.py populate_db: Use do_create_realm for creating zephyr realm. 2021-07-06 17:22:00 -07:00
test_email_notifications.py email_notifications: Show mentioned user group in email notifications. 2021-07-05 14:23:59 -07:00
test_embedded_bot_system.py logging: use assertEqual to assert logging output. 2021-03-25 01:10:03 -07:00
test_event_queue.py mentions: Send user group mention data to notification notices. 2021-07-05 14:23:59 -07:00
test_event_system.py populate_db: Use do_create_realm for creating zulip realm. 2021-07-06 17:37:43 -07:00
test_events.py populate_db: Use do_create_realm for creating zulip realm. 2021-07-06 17:37:43 -07:00
test_example.py test_example.py: Add a new example to demonstrate mocking. 2021-07-08 10:04:20 -04:00
test_external.py
test_github.py
test_gitter_importer.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_home.py blueslip: Remove SAVE_FRONTEND_STACKTRACES setting. 2021-07-07 09:26:02 -07:00
test_hotspots.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_i18n.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_import_export.py populate_db: Use do_create_realm for creating zulip realm. 2021-07-06 17:37:43 -07:00
test_integrations.py tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
test_integrations_dev_panel.py exceptions: Add ResourceNotFoundError. 2021-07-05 11:02:12 -07:00
test_internet.py
test_legacy_subject.py
test_link_embed.py test_link_embed: Use responses module to mock HTTP responses. 2021-06-09 12:17:26 -07:00
test_logging_handlers.py logging_handlers: Remove STAGING_ERROR_NOTIFICATIONS setting. 2021-07-07 09:26:02 -07:00
test_management_commands.py billing: Downgrade small realms that are behind on payments. 2021-07-02 13:19:12 -07:00
test_markdown.py markdown: Refactor out additional properties added to Message. 2021-06-24 18:14:53 -07:00
test_mattermost_importer.py data_import: Add import attachments support for Mattermost. 2021-07-02 11:19:45 -07:00
test_message_dict.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_message_edit.py markdown: Refactor out additional properties added to Message. 2021-06-24 18:14:53 -07:00
test_message_edit_notifications.py event_queue: Consistently user `user_notifications_data` as variable name. 2021-06-25 08:54:01 -07:00
test_message_fetch.py populate_db: Use do_create_realm for creating zulip realm. 2021-07-06 17:37:43 -07:00
test_message_flags.py tornado_redirected_to_list: Make expected_num_events required argument. 2021-05-28 09:42:14 -07:00
test_message_send.py message: Fix the edit topic bug by removing leading \n from msg content. 2021-07-06 09:41:54 -07:00
test_message_topics.py
test_messages.py notifications_data: Rename `id` -> `user_id`. 2021-06-24 17:34:50 +05:30
test_middleware.py help: Update help pages according to profile page redesign. 2021-06-30 16:56:03 -07:00
test_migrations.py
test_mirror_users.py
test_muting_topics.py refactor: Rename backend muting tests to be specific. 2021-04-05 18:04:31 -07:00
test_muting_users.py muting: Add support for muting deactivated users. 2021-07-07 10:44:18 -07:00
test_new_users.py populate_db: Use do_create_realm for creating zulip realm. 2021-07-06 17:37:43 -07:00
test_notification_data.py notification_data: Add `get_user_group_mentions_data` function. 2021-07-05 14:23:59 -07:00
test_onboarding.py
test_openapi.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_outgoing_http.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_outgoing_webhook_interfaces.py outgoing_webhook: Improve invalid json handling when parsing response. 2021-04-26 09:32:35 -07:00
test_outgoing_webhook_system.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_populate_db.py
test_presence.py tests: Move tests of /activity pages from zerver to analytics module. 2021-06-11 07:41:02 -07:00
test_push_notifications.py android notifications: Differentiate personal vs wildcard mentions. 2021-07-08 10:03:07 -07:00
test_queue.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_queue_worker.py test_queue_worker: Fix order-dependent assertions. 2021-07-06 14:37:16 -07:00
test_rate_limiter.py
test_reactions.py reactions: Select Message FOR UPDATE when adding/removing. 2021-06-04 08:18:17 -07:00
test_realm.py populate_db: Use do_create_realm for creating zulip realm. 2021-07-06 17:37:43 -07:00
test_realm_domains.py tests: Clean up tests for realm_domain and update_streams endpoint. 2021-05-12 12:38:16 -07:00
test_realm_emoji.py settings: Rename MAX_EMOJI_FILE_SIZE. 2021-06-02 13:55:15 -07:00
test_realm_export.py python: Migrate most json_error => JsonableError. 2021-06-30 16:22:38 -07:00
test_realm_linkifiers.py linkifiers: Add joint validation for linkifier urls and patterns. 2021-06-16 17:51:33 -07:00
test_realm_playgrounds.py models: Fix bug in unique_together condition on RealmPlayground. 2021-05-24 23:11:41 -07:00
test_redis_utils.py
test_report.py docs: Fix capitalization mistakes. 2021-05-10 09:57:26 -07:00
test_retention.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_send_email.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_service_bot_system.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_sessions.py web_public_view: Replace `web_public_visitor` with `spectator`. 2021-06-16 07:46:34 -07:00
test_settings.py api: Fix encoding of strings in display settings endpoint. 2021-05-10 10:03:32 -07:00
test_signup.py populate_db: Use do_create_realm for creating zulip realm. 2021-07-06 17:37:43 -07:00
test_slack_importer.py test_slack_importer: Use responses module to mock HTTP responses. 2021-06-09 12:17:26 -07:00
test_slack_message_conversion.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_soft_deactivation.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_subdomains.py subdomains: Extend "static" to include resources hosted on S3. 2021-06-08 15:28:10 -07:00
test_submessage.py submessages: Add verify_submessage_sender. 2021-06-14 17:46:16 -07:00
test_subs.py populate_db: Use do_create_realm for creating zulip realm. 2021-07-06 17:37:43 -07:00
test_templates.py
test_thumbnail.py requirements: Remove Thumbor. 2021-05-06 20:07:32 -07:00
test_timestamp.py
test_timezone.py docs: Fix spelling errors caught by codespell. 2021-04-26 09:31:08 -07:00
test_tornado.py tornado: Explicitly mark requests as varying by cookie. 2021-04-02 14:55:22 -07:00
test_transfer.py tests: Consistently use assert_length helper. 2021-05-19 11:55:56 -07:00
test_tutorial.py api: Fix encoding of strings in tutorial endpoint. 2021-05-07 14:06:54 -07:00
test_type_debug.py
test_typing.py tornado_redirected_to_list: Make expected_num_events required argument. 2021-05-28 09:42:14 -07:00
test_upload.py subdomains: Extend "static" to include resources hosted on S3. 2021-06-08 15:28:10 -07:00
test_urls.py auth: Implement a generic OpenID Connect backend. 2021-05-28 09:43:06 -07:00
test_user_groups.py models: Add can_edit_user_group helper. 2021-06-29 17:25:42 -07:00
test_user_status.py tornado_redirected_to_list: Make expected_num_events required argument. 2021-05-28 09:42:14 -07:00
test_users.py populate_db: Use do_create_realm for creating zulip realm. 2021-07-06 17:37:43 -07:00
test_webhooks_common.py webhooks: Support configuring destination stream by id. 2021-06-30 09:31:07 -07:00
test_widgets.py widgets: Add range checks on backend for indexes. 2021-06-29 13:40:33 -07:00
test_zcommand.py
test_zephyr.py docs: Add missing space to compound verbs “log in”, “set up”, etc. 2021-04-26 09:31:08 -07:00