zulip/zerver/tests
Steve Howell 155f6da8ba bots: Add owner_id to bot-related payloads.
For the below payloads we want `owner_id` instead
of `owner`, which we should deprecate.  (The
`owner` field is actually an email, which is
not a stable key.)

    page_params.realm_bots

    realm_bot/add

    realm_bot/update

IMPORTANT NOTE: Some of the data served in
these payloads is cached with the key
`bot_dicts_in_realm_cache_key`.

For page_params, we get the new field
via `get_owned_bot_dicts`.

For realm_bot/add, we modified
`created_bot_event`.

For realm_bot/update, we modified
`do_change_bot_owner`.

On the JS side, we no longer
look up the bot's owner directly in
`server_events_dispatch` when we get
a realm_bot/update event. Instead, we
delegate that job to `bot_data.js`.
I modified the tests accordingly.
2020-05-11 16:16:58 -07:00
..
fixtures bugdown: Leave link titles alone until clean_user_content_links. 2020-05-09 16:32:40 -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 alert_words: Change test_alert_words to use actions.do_*(). 2020-04-27 22:53:25 -07:00
test_archive.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_attachments.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_audit_log.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_auth_backends.py python: Convert more variable type annotations to Python 3.6 style. 2020-05-08 16:42:43 -07:00
test_bots.py bots: Add owner_id to bot-related payloads. 2020-05-11 16:16:58 -07:00
test_bugdown.py message-edit: Process user groups for mentioned user ids. 2020-05-11 14:52:11 -07:00
test_cache.py logging: Pass format arguments to logging. 2020-05-02 10:18:02 -07:00
test_camo.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_compatibility.py version: Update for Zulip Desktop v5.2.0. 2020-05-07 11:25:15 -07:00
test_create_video_call.py tests: Limit email-based logins. 2020-03-11 17:10:22 -07:00
test_custom_profile_data.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_decorators.py org settings: Enable message_retention_days in org settings UI. 2020-05-08 14:09:31 -07:00
test_digest.py streams: Remove dependency of streams on actions. 2020-04-18 16:56:59 -07:00
test_docs.py test_docs: Update a string for verifying docs. 2020-05-05 17:26:22 -07:00
test_email_change.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_email_log.py emails: Don't log emails while running test suite. 2018-10-11 15:12:08 -07:00
test_email_mirror.py logging: Pass format arguments to logging. 2020-05-02 10:18:02 -07:00
test_email_notifications.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_embedded_bot_system.py logging: Pass format arguments to logging. 2020-05-02 10:18:02 -07:00
test_event_queue.py python: Whitespace fixes from autopep8. 2020-04-21 17:58:09 -07:00
test_events.py bots: Add owner_id to bot-related payloads. 2020-05-11 16:16:58 -07:00
test_external.py logging: Pass format arguments to logging. 2020-05-02 10:18:02 -07:00
test_gitter_importer.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_hipchat_importer.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_home.py bots: Add owner_id to bot-related payloads. 2020-05-11 16:16:58 -07:00
test_hotspots.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_i18n.py i18n: Update translation data from Transifex. 2020-05-07 16:09:16 -07:00
test_import_export.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_integrations.py tools: Allow specifying more options when capturing screenshot. 2020-04-28 13:00:09 -07:00
test_integrations_dev_panel.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_internet.py tests: Replace httpretty with responses. 2020-01-22 11:56:15 -08:00
test_legacy_subject.py tests: Limit email-based logins. 2020-03-11 17:10:22 -07:00
test_link_embed.py bugdown: Leave link titles alone until clean_user_content_links. 2020-05-09 16:32:40 -07:00
test_logging_handlers.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_management_commands.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_mattermost_importer.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_message_edit_notifications.py tests: Cleanup test_message_edit_notifications. 2020-04-29 17:15:51 -07:00
test_messages.py bugdown: Leave link titles alone until clean_user_content_links. 2020-05-09 16:32:40 -07:00
test_middleware.py queue_processors: Remove the slow_queries queue. 2020-05-11 00:45:13 -07:00
test_migrations.py test_migrations: Disable migrations test. 2019-05-12 22:06:17 -07:00
test_muting.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_narrow.py bugdown: Leave link titles alone until clean_user_content_links. 2020-05-09 16:32:40 -07:00
test_new_users.py tests: Use email/delivery_email more explicitly. 2020-03-19 16:04:03 -07:00
test_onboarding.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_openapi.py urls: Migrate urls to use modern django pattern. 2020-05-07 16:28:58 -07:00
test_outgoing_webhook_interfaces.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_outgoing_webhook_system.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_populate_db.py models: Migration of Message.pub_date to date_sent, part 2. 2019-10-05 19:01:34 -07:00
test_presence.py settings: Offer hiding presence info from other users. 2020-05-02 15:09:05 -07:00
test_push_notifications.py logging: Pass format arguments to logging. 2020-05-02 10:18:02 -07:00
test_queue.py Upgrade pika to 1.1.*. 2019-10-29 17:01:12 -07:00
test_queue_worker.py queue_processors: Remove the slow_queries queue. 2020-05-11 00:45:13 -07:00
test_rate_limiter.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_reactions.py api: Guess emoji_type when adding a reaction. 2020-04-28 20:49:39 -07:00
test_realm.py org settings: Fix limited plan realm can change message_retention_days. 2020-05-09 16:40:50 -07:00
test_realm_domains.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_realm_emoji.py emoji_name: Raise correct exception if emoji_name is missing. 2020-04-12 11:52:45 -07:00
test_realm_export.py tests: Limit email-based logins. 2020-03-11 17:10:22 -07:00
test_realm_filters.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_redis_utils.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_report.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_retention.py retention: Optimize fetching of realms and streams with retention policy. 2020-05-07 16:28:05 -07:00
test_service_bot_system.py mypy: Add specific codes to type: ignore annotations. 2020-04-22 10:46:33 -07:00
test_sessions.py tests: Limit email-based logins. 2020-03-11 17:10:22 -07:00
test_settings.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_signup.py bugdown: Leave link titles alone until clean_user_content_links. 2020-05-09 16:32:40 -07:00
test_slack_importer.py slack-import: Downgrade Slack legacy-token check failure to warning. 2020-05-11 13:41:50 -07:00
test_slack_message_conversion.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_soft_deactivation.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_subdomains.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
test_submessage.py tests: Limit email-based logins. 2020-03-11 17:10:22 -07:00
test_subs.py bugdown: Leave link titles alone until clean_user_content_links. 2020-05-09 16:32:40 -07:00
test_templates.py requirements: Upgrade Python-Markdown from 3.1.1 to 3.2.1. 2020-04-18 13:09:51 -07:00
test_thumbnail.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_timestamp.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
test_tornado.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_transfer.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_tutorial.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_type_debug.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
test_typing.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_unread.py test_unread: Remove test for removed mobile hack. 2020-04-26 23:41:53 -07:00
test_upload.py bugdown: Leave link titles alone until clean_user_content_links. 2020-05-09 16:32:40 -07:00
test_urls.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_user_groups.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_user_status.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_users.py user_name: Prevent users from setting name ending with |number. 2020-04-30 15:59:12 -07:00
test_webhooks_common.py mypy: Add specific codes to type: ignore annotations. 2020-04-22 10:46:33 -07:00
test_widgets.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
test_zcommand.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test_zephyr.py tests: Limit email-based logins. 2020-03-11 17:10:22 -07:00