zulip/zerver/tests
Steve Howell 3910448b1d Extract MessageDict.post_process_dicts().
Introduce MessageDict.post_process_dicts() will allow us
the ability to do the following:

    * use less memory in the cache for repeated data
    * prevent cache invalidation
    * format data according to different client needs

The first use of this function is pretty inconsequential, but
it sets us up for more consequential changes.

In this commit we defer the MessageDict.hydrate_recipient_info
step until after we pull data out of the cache.  This impacts
cache size as follows:

    * streams - negligibly bigger
    * PMs/huddles - slimmer due to not needing to repeat
                    sender data like email/full_name

Again, the main point of this change is to start setting up
the infrastructure to do post-processing.
2017-10-11 11:37:16 -07:00
..
images Update types of images accepted as avatars. 2016-07-26 16:36:47 +05:30
__init__.py Fix missing zerver/tests/__init__.py. 2016-04-11 22:34:22 -07:00
test_alert_words.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_attachments.py lint: Replace `pk` with `id` where they are equivalent. 2017-10-06 12:52:12 -07:00
test_audit_log.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_auth_backends.py settings: Remove remaining references to REALMS_HAVE_SUBDOMAINS. 2017-10-02 16:43:54 -07:00
test_bots.py Avoid O(N) query pitfall for /users endpoint. 2017-10-09 14:08:07 -07:00
test_bugdown.py tests: Add @slow decorator to various methods needing it. 2017-10-06 15:45:04 -07:00
test_compatibility.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_custom_profile_data.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_decorators.py test_decorators: Replace the json/tutorial_status endpoint in tests. 2017-10-09 15:13:33 -07:00
test_docs.py tests: Add @slow decorator to various methods needing it. 2017-10-06 15:45:04 -07:00
test_email_change.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_email_mirror.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_event_queue.py event_queue: Fixed stream_push_notify code path in missedmessage_hook. 2017-09-27 15:57:48 -07:00
test_events.py Flush standard output in match_states(). 2017-10-09 12:23:49 -07:00
test_export.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_external.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_home.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_hotspots.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_i18n.py Revert "locale: Fix incorrect locale name for zh-Hans." 2017-10-06 10:09:08 -07:00
test_link_embed.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_logging_handlers.py logging: Explain quirks of Python logging config, and apply a style. 2017-09-28 18:26:39 -07:00
test_management_commands.py test_management_commands: Fix send_webhook_fixture_message test. 2017-10-08 21:20:35 -07:00
test_message_edit_notifications.py Notify offline users about edited stream messages. 2017-10-03 15:57:06 -07:00
test_messages.py Extract MessageDict.post_process_dicts(). 2017-10-11 11:37:16 -07:00
test_middleware.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_muting.py Have topic_is_muted take a stream_id. 2017-10-05 09:32:16 -07:00
test_narrow.py reactions: Switch to using `name_to_codepoint`. 2017-10-04 23:09:14 -07:00
test_new_users.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_notifications.py settings: Remove remaining references to REALMS_HAVE_SUBDOMAINS. 2017-10-02 16:43:54 -07:00
test_outgoing_webhook_interfaces.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_outgoing_webhook_system.py settings: Remove remaining references to REALMS_HAVE_SUBDOMAINS. 2017-10-02 16:43:54 -07:00
test_presence.py tests: Don't use caching session engine in tests. 2017-10-06 12:22:20 -07:00
test_push_notifications.py tests: Add a test suite for verifying the mobile push notifs content. 2017-10-06 16:47:27 -07:00
test_queue_worker.py queue: Add test for signups retry logic. 2017-10-05 23:14:19 -07:00
test_reactions.py reactions.py: Don't check for valid emoji name while removing reaction. 2017-10-09 17:54:37 +00:00
test_realm.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_realm_domains.py subdomains: Hardcode REALMS_HAVE_SUBDOMAINS=True. 2017-10-02 16:42:43 -07:00
test_realm_emoji.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_realm_filters.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_report.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_retention.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_service_bot_system.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_sessions.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_settings.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_signup.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_soft_deactivation.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_subs.py Use stream ids in various tests. 2017-10-08 20:18:34 -07:00
test_templates.py tests: Add @slow decorator to various methods needing it. 2017-10-06 15:45:04 -07:00
test_timestamp.py analytics: Enforce various datetime arguments are in UTC. 2017-10-05 11:22:06 -07:00
test_tornado.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_tutorial.py urls: Move the json/tutorial_status endpoint to be an API-style route. 2017-10-09 15:13:33 -07:00
test_type_debug.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_typing.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_unread.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_upload.py zerver/tests: Remove absolute_import. 2017-09-27 10:00:39 -07:00
test_urls.py tests: Add @slow decorator to various methods needing it. 2017-10-06 15:45:04 -07:00
test_users.py zerver/tests: Remove print_function. 2017-09-27 18:05:45 -07:00
test_zephyr.py zephyr: Update path to process_cache for repository split. 2017-10-05 12:35:20 -07:00
tests.py retention-period: Add retention period to front-end admin organization settings. 2017-03-25 17:57:18 -07:00