zulip/zerver/tests
Ganesh Pawar 830f1fa8c5 upload: Refactor and add tests for ensure_avatar_image in upload.py.
`ensure_basic_avatar_image` and `ensure_medium_avatar_image` are
essentially the same thing, except a size parameter.
So, refactor them into a single function.

This doesn't introduce any functional changes.
2021-04-29 21:18:13 -07:00
..
fixtures test users: Add an escape char to a test username. 2021-04-13 11:42:06 -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: Fix highlighting of adjacent alert words. 2021-04-28 07:54:50 -07:00
test_archive.py refactor: Make acting_user a mandatory kwarg for do_deactivate_stream. 2021-04-02 14:44:41 -07:00
test_attachments.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_audit_log.py refactor: Make acting_user a mandatory kwarg for do_deactivate_realm. 2021-04-02 14:44:41 -07:00
test_auth_backends.py ldap: Add advanced LDAP realm access control. 2021-04-28 09:08:13 -07:00
test_bots.py refactor: Make acting_user a mandatory kwarg for do_deactivate_user. 2021-03-29 15:51:45 -07:00
test_cache.py tests: Eliminate use of get_user_profile_by_email in tests. 2021-03-11 20:30:57 -08:00
test_camo.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_compatibility.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_create_video_call.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_custom_profile_data.py users: Add role field to user objects returned by format_user_row. 2021-04-29 15:13:50 -07:00
test_data_types.py data_types: Generalize StringDictType. 2020-09-25 11:43:19 -07:00
test_decorators.py middleware: Simplify logic for parsing user-agent. 2021-04-29 17:47:41 -07:00
test_digest.py refactor: Make acting_user a mandatory kwarg for do_create_user. 2021-02-25 17:58:00 -08:00
test_docs.py docs: Add missing space to compound verbs “log in”, “set up”, etc. 2021-04-26 09:31:08 -07:00
test_drafts.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
test_email_change.py refactor: Make acting_user a mandatory kwarg for do_set_realm_property. 2021-03-29 15:51:45 -07:00
test_email_log.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_email_mirror.py emails: Rename "missed message email" to "message notification email". 2021-04-21 10:10:54 -07:00
test_email_notifications.py send_custom_email: Add dry-run flag to verify recipients and email. 2021-04-26 17:31:34 -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 refactor: Make acting_user a mandatory kwarg for do_change_subscription_property. 2021-04-08 17:50:10 -07:00
test_event_system.py api: Add zulip_version and zulip_feature_level in restart event. 2021-04-29 12:08:15 -07:00
test_events.py events: Add 'is_moderator' field to the page_params object sent to clients. 2021-04-29 15:18:49 -07:00
test_external.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_github.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_gitter_importer.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_home.py events: Add 'is_moderator' field to the page_params object sent to clients. 2021-04-29 15:18:49 -07:00
test_hotspots.py hotspots: Add TUTORIAL_ENABLED setting to toggle INTRO_HOTSPOTS. 2021-03-30 14:46:42 -07:00
test_i18n.py templates: Remove context argument from {{#tr}} block helper. 2021-04-13 18:59:46 -07:00
test_import_export.py test users: Add an escape char to a test username. 2021-04-13 11:42:06 -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 python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_internet.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_legacy_subject.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_link_embed.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_logging_handlers.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_management_commands.py send_custom_email: Improve printing of outgoing emails. 2021-04-27 21:36:17 -07:00
test_markdown.py test users: Add an escape char to a test username. 2021-04-13 11:42:06 -07:00
test_mattermost_importer.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_message_dict.py CVE-2021-30478: Prevent API super users from forging messages to other organizations. 2021-04-14 12:37:34 -07:00
test_message_edit.py message_edit: Don't add content edit to all messages. 2021-04-24 13:51:49 -07:00
test_message_edit_notifications.py emails: Rename "missed message email" to "message notification email". 2021-04-21 10:10:54 -07:00
test_message_fetch.py refactor: Make acting_user a mandatory kwarg for do_deactivate_user. 2021-03-29 15:51:45 -07:00
test_message_flags.py message: Record whether unread_msgs data is truncated. 2021-03-21 19:48:13 -07:00
test_message_send.py CVE-2021-30478: Prevent API super users from forging messages to other organizations. 2021-04-14 12:37:34 -07:00
test_message_topics.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_messages.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_middleware.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_migrations.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_mirror_users.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_muting_topics.py refactor: Rename backend muting tests to be specific. 2021-04-05 18:04:31 -07:00
test_muting_users.py mute user: Mark as read old messages immediately. 2021-04-13 09:08:47 -07:00
test_new_users.py test users: Add an escape char to a test username. 2021-04-13 11:42:06 -07:00
test_onboarding.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_openapi.py mypy: Don’t use Iterable for values iterated multiple times. 2021-04-29 16:06:17 -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 outgoing_webhook: Add a logging statement for each outgoing webhook. 2021-04-29 12:37:14 -07:00
test_populate_db.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
test_presence.py docs: Add missing space to compound verbs “log in”, “set up”, etc. 2021-04-26 09:31:08 -07:00
test_push_notifications.py test users: Add an escape char to a test username. 2021-04-13 11:42:06 -07:00
test_queue.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_queue_worker.py emails: Rename "missed message email" to "message notification email". 2021-04-21 10:10:54 -07:00
test_rate_limiter.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_reactions.py docs: Fix spelling errors caught by codespell. 2021-04-26 09:31:08 -07:00
test_realm.py settings: Add new setting for controlling who can move msgs to stream. 2021-04-16 15:10:39 -07:00
test_realm_domains.py refactor: Make acting_user a mandatory kwarg for do_remove_realm_domain. 2021-04-08 17:50:10 -07:00
test_realm_emoji.py refactor: Make acting_user a mandatory kwarg for do_create_user. 2021-02-25 17:58:00 -08:00
test_realm_export.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_realm_linkifiers.py linkifiers: Add an API to support the editing of linkifier. 2021-04-19 18:01:45 -07:00
test_realm_playgrounds.py playgrounds: Avoid json encoding each field in POST /realm/playgrounds. 2021-04-19 11:23:09 -07:00
test_redis_utils.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_report.py test_report: Avoid Any type. 2021-02-15 17:05:28 -08:00
test_retention.py refactor: Make acting_user a mandatory kwarg for do_set_realm_property. 2021-03-29 15:51:45 -07:00
test_send_email.py email: Open a single SMTP connection to send email batches. 2021-04-26 17:27:22 -07:00
test_service_bot_system.py refactor: Make acting_user a mandatory kwarg for do_create_user. 2021-02-25 17:58:00 -08:00
test_sessions.py migrations: Subscription.is_user_active denormalization - step one. 2021-03-30 09:19:03 -07:00
test_settings.py display_settings: Allow user to set default_view. 2021-03-11 18:09:08 -08:00
test_signup.py test_signup: Test List-Unsubscribe POST request. 2021-04-28 17:19:35 -07:00
test_slack_importer.py docs: Fix spelling errors caught by codespell. 2021-04-26 09:31:08 -07:00
test_slack_message_conversion.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_soft_deactivation.py test users: Add an escape char to a test username. 2021-04-13 11:42:06 -07:00
test_subdomains.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_submessage.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_subs.py docs: Add missing space to compound verbs “log in”, “set up”, etc. 2021-04-26 09:31:08 -07:00
test_templates.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_thumbnail.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_timestamp.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
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 python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_tutorial.py actions: Remove realm argument to internal_send_private_message. 2021-02-23 15:26:47 -08:00
test_type_debug.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_typing.py typing: Support sending stream/topic typing status. 2021-04-27 20:52:21 -07:00
test_upload.py upload: Refactor and add tests for ensure_avatar_image in upload.py. 2021-04-29 21:18:13 -07:00
test_urls.py api: Delete ancient fetch_google_client_id endpoint. 2021-04-08 06:10:39 -07:00
test_user_groups.py docs: Add missing space to compound verbs “log in”, “set up”, etc. 2021-04-26 09:31:08 -07:00
test_user_status.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_users.py users: Add support for changing user role to moderator in api. 2021-04-29 15:17:45 -07:00
test_webhooks_common.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_widgets.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_zcommand.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test_zephyr.py docs: Add missing space to compound verbs “log in”, “set up”, etc. 2021-04-26 09:31:08 -07:00