zulip/zerver/tests
Anders Kaseorg e00d4be6d5 events: Check last_event_id for validity.
This verifies that the client passed a last_event_id that actually
came from the queue instead of making up an ID from the future.  It
turns out one of our tests was making up such an ID, but legitimate
clients are expected not to do so.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-07-26 17:18:28 -07:00
..
fixtures url preview: Avoid showing previews for URLs in blockquotes. 2019-07-12 19:14:00 -07:00
images emoji: Only resize custom emoji that need it. 2019-01-29 10:33:50 -08:00
__init__.py Fix missing zerver/tests/__init__.py. 2016-04-11 22:34:22 -07:00
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 lint: Prevent self: Any annotations. 2017-12-08 19:00:18 -08:00
test_audit_log.py test_audit_log: Prepare for moving system bots to zulipinternal. 2019-07-20 15:08:06 -07:00
test_auth_backends.py settings: Unset STATIC_ROOT in development. 2019-07-24 17:40:31 -07:00
test_bots.py test_bots: Remove override_settings decorator from test case. 2019-07-15 14:16:56 -07:00
test_bugdown.py test_bugdown: Prepare for moving system bots to zulipinternal. 2019-07-24 16:44:16 -07:00
test_cache.py cache: Fix caching of system bots. 2019-07-15 12:32:29 -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 models: Add external_account in custom profile field types. 2019-07-09 17:21:54 -07:00
test_decorators.py webhooks: Log unexpected webhook events separately. 2019-07-22 18:20:53 -07:00
test_digest.py emails: Extract get_narrow_url into a function. 2019-06-28 11:38:17 -07:00
test_docs.py settings: Unset STATIC_ROOT in development. 2019-07-24 17:40:31 -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: Rename include-quotations to include-quotes. 2019-07-20 15:53:43 -07:00
test_email_notifications.py test_email_notifs: Prepare for moving system bots to zulipinternal. 2019-07-24 16:44:16 -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 events: Rewrite system for managing realm exports. 2019-07-26 16:38:52 -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 tests: Move get_set to ZulipTestCase. 2019-05-21 14:10:29 -07:00
test_hipchat_importer.py hipchat: Limit messages in slim mode. 2018-11-26 16:37:30 -08:00
test_home.py test_home: Prepare for moving system bots to zulipinternal. 2019-07-23 15:30:30 -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 python: Migrate open statements to use with. 2019-07-20 15:48:52 -07:00
test_integrations_dev_panel.py webhooks: Replace headers parsing logic with a common source. 2019-06-24 13:23:21 -07:00
test_json_encoder_for_html.py zerver: Remove simplejson dependency. 2017-11-21 21:51:48 -08:00
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: Replace YouTube URLs with their titles. 2019-07-12 19:14:19 -07:00
test_logging_handlers.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_management_commands.py test_management_command: Prepare for moving system bots to zulipinternal. 2019-07-23 15:37:37 -07:00
test_mattermost_importer.py tests: Move get_set to ZulipTestCase. 2019-05-21 14:10:29 -07:00
test_message_edit_notifications.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_messages.py test_messages: Prepare for moving system bots to zulipinternal. 2019-07-24 16:44:16 -07:00
test_middleware.py open graph: Uploaded realm icon URL is absolute for some backends. 2019-05-20 13:14:28 -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 messages: Support passing user IDs for group-pm-with operator. 2019-07-17 16:09:12 -07:00
test_new_users.py test_new_users: Prepare for moving system bots to zulipinternal. 2019-07-20 14:55:22 -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 openapi: Update tests to ensure that request parameter types match. 2019-07-26 12:49:59 -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_populate_db.py populate_db: Refactor message.pub_date generating code. 2019-07-22 15:55:28 -07:00
test_presence.py test_presence: Prepare for moving system bots to zulipinternal. 2019-07-20 14:55:21 -07:00
test_push_notifications.py test_push_notifs: Prepare for moving system bots to zulipinternal. 2019-07-24 16:44:16 -07:00
test_queue_worker.py middleware: Change write_log_line to publish as a dict. 2019-07-22 17:06:41 -07:00
test_queue.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_reactions.py test_retention: Check that Reactions get correctly deleted. 2019-05-30 11:33:41 -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 events: Rewrite system for managing realm exports. 2019-07-26 16:38:52 -07:00
test_realm_filters.py linkifiers: Allow semicolons in target URLs. 2019-05-14 11:17:55 -07:00
test_realm.py models: Extract get_human_admin_users function. 2019-06-20 14:32:30 -07:00
test_report.py zerver/tests: Remove unused imports. 2019-02-02 17:43:03 -08:00
test_retention.py test_retention: Prepare for moving system bots to zulipinternal. 2019-07-20 15:08:08 -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 display setting for demoting inactive streams. 2019-06-03 23:07:56 -07:00
test_signup.py models: Rename notification to enable_stream_audible_notifications. 2019-06-12 16:24:51 -07:00
test_slack_importer.py tests: Use TEST_WORKER_DIR for file access. 2019-07-12 17:42:18 -07:00
test_slack_message_conversion.py python: Migrate open statements to use with. 2019-07-20 15:48:52 -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 streams: New stream messages should be auto marked as read by creator. 2019-07-26 15:10:09 -07:00
test_templates.py storage: Stop using django-pipeline. 2019-07-24 17:40:31 -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 events: Check last_event_id for validity. 2019-07-26 17:18:28 -07:00
test_transfer.py management: Add tooling for transfering local uploads to s3. 2019-02-14 14:31:46 -08:00
test_tutorial.py test_presence: Prepare for moving system bots to zulipinternal. 2019-07-20 14:55:21 -07:00
test_type_debug.py mypy: Remove some now-unnecessary type: ignores. 2018-03-28 10:39:05 -07:00
test_typing.py test_typing: Prepare for moving system bots to zulipinternal. 2019-07-20 14:55:21 -07: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 public_export: Add logic for deleting the export tarball. 2019-07-26 15:52:03 -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 api: Remove spammy json_success content for edit_user_group. 2019-07-09 13:04:47 -07: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 email: Convert send_email to use formataddr. 2019-07-22 18:15:58 -07:00
test_webhooks_common.py webhooks: Eliminate the usage of a headers.py file. 2019-06-26 10:35:14 -07: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