zulip/zerver/tests
Steve Howell f2dd218331 refactor: Inline succeed_with_message().
This two-line function wasn't really carrying its
weight, and it just made it harder to refactor the
overall codepath.

Eliminating the function forces us to mock at a slightly
deeper level, which is probably a good thing for what
the test intends to do.  The deeper mock still verifies that
we're sending the message (good) without digging into
all the details of how we send it (good).

Note that we will still keep around the similarly named
`fail_with_message` helper, which is a lot more useful.
(The succeed/fail scenarios aren't really symmetric here.
For success, there are fewer codepaths that do more complex
things, whereas we have lots and lots of failure codepaths
that all do the same simple thing of replying with a canned
message.)
2018-10-09 15:56:24 -07:00
..
fixtures tests: Stop using fixtures to test generate_dev_ldap_dir. 2018-08-21 12:55:36 -07:00
images
__init__.py
test_alert_words.py alert words: Return the updated list when adding/removing words. 2018-07-13 01:01:00 +05:30
test_archive.py archives: Change the topic/<topic_name> code path to use topics prefix. 2018-07-14 10:39:35 +05:30
test_attachments.py
test_audit_log.py peformance: Avoid broad StreamCount queries. 2018-08-17 08:14:42 -07:00
test_auth_backends.py auth: Use different defaults for name and email for fakeldap. 2018-08-31 17:07:02 +05:30
test_bots.py tests: Add more testing for patching bots. 2018-08-17 08:14:42 -07:00
test_bugdown.py bugdown: Add @user|id syntax to support users with same name. 2018-08-31 14:16:47 -07:00
test_cache.py
test_compatibility.py
test_custom_profile_data.py custom profile field: Add length validation on field name and hint. 2018-08-17 08:37:27 -07:00
test_decorators.py decorator: Fix error message for accessing deactivated accounts. 2018-08-09 15:58:31 -07:00
test_digest.py models: Rename Realm.show_digest_email field. 2018-08-01 11:05:58 -07:00
test_docs.py api docs: Update api-keys. 2018-09-25 21:02:58 -07:00
test_email_change.py registration: Use tokenized noreply address in email change. 2018-06-23 12:03:30 -07:00
test_email_log.py
test_email_mirror.py tests: Add coverage for email/stream encode/decode logic. 2018-08-13 13:23:29 -07:00
test_embedded_bot_system.py mypy: test_embedded_bot_system.py: add asserts & remove from mypy.ini. 2018-06-19 10:48:38 -07:00
test_event_queue.py tests: Move clear_client_event_queues_for_testing to ZulipTestCase. 2018-08-10 13:58:39 -07:00
test_events.py events: Convert custom user field value to json object on update event. 2018-08-22 22:45:08 -07:00
test_external.py Extract a zephyr.py library. 2018-08-11 14:51:26 -07:00
test_feedback.py
test_gitter_importer.py import: Fix rendered_content in imported messages. 2018-08-09 15:12:53 -07:00
test_home.py emoji: Change fallback emojiset for text emojiset. 2018-09-21 18:34:12 -07:00
test_hotspots.py
test_i18n.py
test_import_export.py import: Set Realm.plan_type to SELF_HOSTED on import. 2018-09-21 10:57:22 -07:00
test_json_encoder_for_html.py
test_link_embed.py mypy: test_link_embed.py: add assert & remove from mypy.ini. 2018-06-19 10:48:38 -07:00
test_logging_handlers.py
test_management_commands.py urls: Separate endpoint for signup and new realm email confirm. 2018-08-26 22:53:57 -07:00
test_message_edit_notifications.py zerver/lib/notifications: Add stream email notifications. 2018-07-14 12:19:33 +05:30
test_messages.py notifications: Fix soft-deactivated users don't get push notifications. 2018-09-21 12:06:18 -07:00
test_middleware.py errors: Use a setting to control the stream for slow-query logs. 2018-07-30 17:40:20 -07:00
test_migrations.py
test_muting.py muting: Correct agrammatical error message. 2018-08-27 14:12:03 -07:00
test_narrow.py api: Add limit of total messages available per request of 5000. 2018-10-09 15:43:21 -07:00
test_new_users.py emails: Add detection for ChromeOS User-Agents. 2018-09-21 10:41:05 -07:00
test_notifications.py thumbnails: Rename data-original to data-src-fullsize. 2018-07-30 13:00:23 -07:00
test_onboarding.py
test_openapi.py api docs: Load the OpenAPI file only when needed. 2018-08-08 09:00:28 -07:00
test_outgoing_webhook_interfaces.py refactor: Have process_success return structured data. 2018-10-09 15:56:24 -07:00
test_outgoing_webhook_system.py refactor: Inline succeed_with_message(). 2018-10-09 15:56:24 -07:00
test_presence.py tornado: Split get_events_backend into two functions. 2018-07-30 12:28:31 -07:00
test_push_notifications.py notifications: Handle APNS "Unregistered" errors properly. 2018-08-28 12:12:46 -07:00
test_queue.py
test_queue_worker.py notifications: Format missed_messages argument as a dict. 2018-07-14 11:34:04 +05:30
test_reactions.py reactions: Allow using emoji_name for removing reactions. 2018-07-11 19:41:43 +05:30
test_realm.py models: Add plan_type to Realm. 2018-08-21 12:39:06 -07:00
test_realm_domains.py models: Rename Realm.restricted_to_domain field. 2018-07-31 09:28:33 -07:00
test_realm_emoji.py emoji: Make uploading new realm emoji inaccessible for guest users. 2018-06-16 06:33:14 -07:00
test_realm_filters.py Realm filters: Allow `#`(hash) based URLs in filter patterns. 2018-08-08 11:06:33 -07:00
test_report.py
test_retention.py tests: Make retention tests less time-sensitive. 2018-08-09 06:13:40 -04:00
test_service_bot_system.py tests: Add coverage for service bot events. 2018-08-13 10:37:35 -07:00
test_sessions.py
test_settings.py emoji: Bring back the feature of changing emojisets. 2018-08-31 11:52:24 -07:00
test_signup.py portico: Update text for reset_emailed.html. 2018-09-15 18:45:10 -07:00
test_slack_importer.py slack import: Add support for uploads in messages through 'files' keyword. 2018-08-10 16:20:36 -07:00
test_slack_message_conversion.py import: Add slack import files in zerver/data_import directory. 2018-08-01 11:52:14 -07:00
test_soft_deactivation.py
test_subdomains.py
test_submessage.py
test_subs.py settings: Remove reminder-bot from REALM_INTERNAL_BOTS. 2018-10-02 11:12:07 -07:00
test_templates.py markdown: Add extension for creating tabbed sections on /help and /api. 2018-09-18 13:49:34 -07:00
test_thumbnail.py thumbnails: Fix bug with '/user_avatar/' links in Zulip messages. 2018-08-10 17:17:50 -07:00
test_timestamp.py
test_tornado.py tests: Move clear_client_event_queues_for_testing to ZulipTestCase. 2018-08-10 13:58:39 -07:00
test_tutorial.py
test_type_debug.py
test_typing.py
test_unread.py push notifications: Add support for removing GCM push notifications. 2018-08-10 13:58:39 -07:00
test_upload.py users: Get all API keys via wrapper method. 2018-08-08 16:35:17 -07:00
test_urls.py
test_user_groups.py api: Add an endpoint for listing the user groups in realm. 2018-08-27 16:56:23 -07:00
test_users.py models: Add get_user_by_id_in_realm_including_cross_realm(). 2018-09-12 11:43:24 -07:00
test_webhooks_common.py
test_widgets.py tests: Test how we handle extra data for zform messages. 2018-08-24 10:00:25 -07:00
test_zcommand.py zcommand: Raise error when command doesn't begin with a slash. 2018-07-01 20:32:36 -04:00
test_zephyr.py users: Get all API keys via wrapper method. 2018-08-08 16:35:17 -07:00
tests.py