zulip/zerver/tests
K.Kanakhin e930851d16 retention-period: Add more core code for retention policy.
This is a very old commit for #106, which has been on hiatus for a few
years.  It was significantly modified by tabbott to:
* Improve coding style and variable names
* Update mypy annotations style
* Clean up the testing logic
* Update for API changes elsewhere in our system

But the actual runtime code is essentially unmodified from the
original work by Kirill.

It contains basic support for archiving Messages, UserMessages, and
Attachments with a nice test suite.  It's still not usable in
production (e.g. it will probably break Reactions, SubMessages, etc.),
but upcoming commits will address that.
2019-05-19 20:22:47 -07:00
..
fixtures bugdown: Fix double processed emoji tags inside inline tags. 2019-05-01 17:03:15 -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 zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
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 zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_auth_backends.py ldap: Do not modify self._LDAPUser.attrs in test_query_email_attr. 2019-05-08 09:55:44 -07:00
test_bots.py tests: Optimize a slow test in tests_bots.py. 2019-02-28 22:01:55 -08:00
test_bugdown.py bugdown: Show previews for manually created youtube playlists. 2019-05-12 22:24:42 -07:00
test_cache.py tests: Add 100% test coverage to zerver/apps.py. 2018-05-14 10:36:10 -07:00
test_camo.py camo: Add endpoint to handle camo requests. 2019-01-04 10:27:04 -08:00
test_compatibility.py compatibility: Respond with HTTP 400 when no User-Agent header. 2018-12-10 15:04:34 -08:00
test_create_video_call.py zoom: Fix coverage of new zoom error handling code path. 2019-01-16 15:58:26 -08:00
test_custom_profile_data.py get_realm: raise DoesNotExist instead of returning None. 2019-05-06 21:58:16 -07:00
test_decorators.py webhooks: Remove the legacy GitHub integration. 2019-04-27 15:13:44 -07:00
test_digest.py digest: Trigger additional query to make tests more deterministic. 2019-05-09 15:10:05 -07:00
test_docs.py auth: Use HTTP status 404 for invalid realms. 2019-03-14 13:50:09 -07:00
test_email_change.py emails: Remove newlines from translated strings in email templates. 2019-02-10 12:28:17 -08: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 email_mirror: Add test for process_message not finding valid recipient. 2019-05-12 18:55:47 -07:00
test_email_notifications.py test_email_notifications: Fix a nondeterministic test. 2019-04-28 22:00:03 -07:00
test_embedded_bot_system.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_event_queue.py models: Rename Subscription.in_home_view field to is_muted. 2019-05-12 22:08:10 -07:00
test_events.py models: Alter video_chat_provider field type to integer. 2019-05-13 12:02:28 -07:00
test_external.py rate_limiter: Generalise some rate_limit_user code. 2019-05-01 12:54:32 -07:00
test_feedback.py Add basic test for FeedbackBot. 2018-03-04 13:31:33 -08:00
test_gitter_importer.py test_classes: Move make_output_dir to test_classes. 2019-04-04 13:51:52 -07:00
test_hipchat_importer.py hipchat: Limit messages in slim mode. 2018-11-26 16:37:30 -08:00
test_home.py settings: Add option for fixed/fluid width. 2019-05-09 13:57:57 -07:00
test_hotspots.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_i18n.py notifications: Rename notifications.py to email_notifications.py. 2019-03-15 11:02:17 -07:00
test_import_export.py export: Add support for exporting realm with member consent. 2019-05-15 12:35:32 -07:00
test_integrations_dev_panel.py devtools: Add custom HTTP headers support to the integrations dev panel. 2019-05-17 11:50:53 -07:00
test_json_encoder_for_html.py
test_legacy_subject.py Add alias support to REQ helpers for subject/topic. 2018-11-12 15:47:11 -08:00
test_link_embed.py url preview: Catch network errors during get for page content. 2019-05-13 13:55:00 -07:00
test_logging_handlers.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_management_commands.py export: Add support for exporting realm with member consent. 2019-05-15 12:35:32 -07:00
test_mattermost_importer.py tests: Make tests work in reverse order in mattermost_importer. 2019-05-04 08:49:34 -07:00
test_message_edit_notifications.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_messages.py get_realm: raise DoesNotExist instead of returning None. 2019-05-06 21:58:16 -07:00
test_middleware.py meta_tags: Remove twitter:title, twitter:description, twitter:image. 2019-05-16 21:19:08 -07:00
test_migrations.py test_migrations: Disable migrations test. 2019-05-12 22:06:17 -07:00
test_muting.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_narrow.py models: Rename Subscription.in_home_view field to is_muted. 2019-05-12 22:08:10 -07:00
test_new_users.py lint: Fix code that evaded our lint checks for string % non-tuple. 2019-04-23 15:21:37 -07:00
test_onboarding.py create_realm_internal_bots: Refactor to extract main op as a function. 2018-05-23 11:53:22 +05:30
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 test_outgoing_webhook_interfaces: Don’t mock an unused import. 2019-02-02 17:28:11 -08:00
test_outgoing_webhook_system.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_presence.py context_processors: Extract keys from zulip_default_context. 2019-03-25 14:05:36 -07:00
test_push_notifications.py tests: Fix bad use of mock local variable name. 2019-04-25 15:28:10 -07:00
test_queue.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_queue_worker.py rate_limiter: Move email_mirror limiter to use rate_limit_entity. 2019-05-01 12:54:32 -07:00
test_reactions.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_realm.py cache: Clear realm descriptions when description is changed. 2019-05-17 11:31:14 -07:00
test_realm_domains.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_realm_emoji.py get_realm: raise DoesNotExist instead of returning None. 2019-05-06 21:58:16 -07:00
test_realm_export.py public_export: Add backend API endpoint for triggering export. 2019-04-26 17:24:29 -07:00
test_realm_filters.py linkifiers: Allow semicolons in target URLs. 2019-05-14 11:17:55 -07:00
test_report.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_retention.py retention-period: Add more core code for retention policy. 2019-05-19 20:22:47 -07:00
test_service_bot_system.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_sessions.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_settings.py settings: Add AVATAR_CHANGES_DISABLED server setting. 2019-05-03 12:58:51 -07:00
test_signup.py get_realm: raise DoesNotExist instead of returning None. 2019-05-06 21:58:16 -07:00
test_slack_importer.py test_classes: Move rm_tree to test_classes. 2019-04-04 13:51:52 -07:00
test_slack_message_conversion.py lint: Fix code that evaded our lint checks for string % non-tuple. 2019-04-23 15:21:37 -07:00
test_soft_deactivation.py soft-deactivation: Run catch-up when "auto" deactivate is run. 2019-03-14 11:53:15 -07:00
test_subdomains.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_submessage.py events: Pass a realm object into send_event. 2018-11-02 16:47:39 -07:00
test_subs.py models: Rename Subscription.in_home_view field to is_muted. 2019-05-12 22:08:10 -07:00
test_templates.py uploads: Remove unusable UI elements if file uploading is disabled. 2019-05-08 17:10:07 -07:00
test_thumbnail.py lint: Fix code that evaded our lint checks for string % non-tuple. 2019-04-23 15:21:37 -07:00
test_timestamp.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_tornado.py tornado: Remove unused imports. 2019-02-02 17:33:13 -08:00
test_transfer.py management: Add tooling for transfering local uploads to s3. 2019-02-14 14:31:46 -08:00
test_tutorial.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_type_debug.py mypy: Remove some now-unnecessary type: ignores. 2018-03-28 10:39:05 -07:00
test_typing.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_unread.py models: Rename Subscription.in_home_view field to is_muted. 2019-05-12 22:08:10 -07:00
test_upload.py realm: Add setting to disable avatar changes. 2019-05-03 12:52:43 -07:00
test_urls.py public_export: Add backend API endpoint for triggering export. 2019-04-26 17:24:29 -07:00
test_user_groups.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_user_status.py user status: Add "status_text" support in the backend. 2019-01-24 09:46:35 -08:00
test_users.py subscriptions: Migrate notification setting defaults model. 2019-05-08 17:45:10 -07:00
test_webhooks_common.py tools: Upgrade Pycodestyle and fix new linter errors. 2019-01-31 12:21:41 -08:00
test_widgets.py widgets: Remove ALLOW_SUB_MESSAGES flag and enable widgets by default. 2019-01-29 09:34:14 -08: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 zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
tests.py