zulip/zerver/tests
orientor ec40a5dda4 openapi_py: Add validation for `/events`.
Edit the function `validate_against_openapi_schema` and add some
helper functions to allow for validation of documented events.
Also add OpenAPI response validation in `verify_action` as it is
called in a large number of `/events` tests.
2020-07-27 18:08:41 -07:00
..
fixtures team: Rename contrib to contributors in page_params. 2020-07-23 10:22:28 -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 populate_db: Add alert words for Zulip users. 2020-07-15 12:33:08 -07:00
test_archive.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_attachments.py models: Change attachment.size to not be nullable. 2020-06-20 13:15:02 -07:00
test_audit_log.py test: Add order_by in query for RealmAuditLog. 2020-07-26 15:47:16 -07:00
test_auth_backends.py tests: Add assertLogs for test_auth_backends. 2020-07-26 16:14:17 -07:00
test_bots.py test_service_bot_system: Fix strict_optional errors. 2020-07-06 11:25:48 -07:00
test_cache.py test_cache: Use assertLogs to avoid spam in test-backend output. 2020-07-26 16:14:17 -07:00
test_camo.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_compatibility.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_create_video_call.py calls: Add Big Blue Button as a Video Call Provider. 2020-06-22 16:19:07 -07:00
test_custom_profile_data.py refactor: Rename convert to markdown_convert. 2020-07-06 12:39:59 -07:00
test_decorators.py tests: Verify logs of incoming webhook profile api key validation. 2020-07-21 12:22:21 -07:00
test_digest.py database: Remove short_name from UserProfile. 2020-07-17 11:15:15 -07:00
test_docs.py billing: Don't allow guest users to upgrade. 2020-07-22 16:57:49 -07:00
test_email_change.py emails: Add a custom header specifying the organization when possible. 2020-06-28 13:33:02 -07:00
test_email_log.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_email_mirror.py email_mirror: Fix exception handling unstructured headers. 2020-07-22 12:11:25 -07:00
test_email_notifications.py auth: Remove short_name from LDAP API. 2020-07-17 11:28:08 -07:00
test_embedded_bot_system.py test_embedded_bot_system: Replace type: ignore annotations with an assert. 2020-06-23 11:29:54 -07:00
test_event_queue.py pointer tests: Use restart for test_collapse_event. 2020-06-26 10:02:37 -07:00
test_event_system.py actions: Remove log_event and its legacy settings. 2020-07-24 12:13:16 -07:00
test_events.py openapi_py: Add validation for `/events`. 2020-07-27 18:08:41 -07:00
test_external.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_gitter_importer.py tests: Avoid "import logging" and setting root logger level in tests. 2020-07-26 16:14:17 -07:00
test_hipchat_importer.py test_hipchat_importer: Fix a type: ignore issue. 2020-06-30 18:58:23 -07:00
test_home.py test_home: Use assertLogs to test info logs by do_soft_deactivate_users. 2020-07-26 16:14:17 -07:00
test_hotspots.py database: Remove short_name from UserProfile. 2020-07-17 11:15:15 -07:00
test_i18n.py tests: Make all tests inherit ZulipTestCase. 2020-07-01 10:48:12 -07:00
test_import_export.py audit_log: Record RealmAuditLog in do_change_icon_source. 2020-07-24 11:56:40 -07:00
test_integrations.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_integrations_dev_panel.py tests: Verify logging on error in check_send_webhook_fixture_message. 2020-07-21 12:22:21 -07:00
test_internet.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_legacy_subject.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_link_embed.py test_link_embed: Add assertLogs to prevent spam in test-backend. 2020-07-26 16:14:17 -07:00
test_logging_handlers.py test_logging_handlers: Avoid printing to console. 2020-07-27 16:33:36 -07:00
test_management_commands.py tests: Mock print() for management command tests. 2020-07-22 17:12:28 -07:00
test_markdown.py tests: Remove unnecessary print statments. 2020-07-22 17:12:28 -07:00
test_mattermost_importer.py tests: Avoid "import logging" for importer tests. 2020-07-24 10:45:59 -07:00
test_message_dict.py test_message_dict: Remove clock time assertion. 2020-07-24 13:29:26 -07:00
test_message_edit.py tests: Move DeleteMessageTest class to test_message_edit.py. 2020-07-06 16:36:36 -07:00
test_message_edit_notifications.py push_notifications: Disable badge counts. 2020-07-15 22:19:53 -07:00
test_message_fetch.py api: Remove (sender_)short_name from message APIs. 2020-07-17 11:15:14 -07:00
test_message_flags.py tests: Verify info logs logging in test_fix_unreads. 2020-07-21 12:22:21 -07:00
test_message_send.py test_message_send: Mark tests using intentiionally undocumented features. 2020-07-26 16:26:57 -07:00
test_message_topics.py tests: Extract test_message_topics.py for topic tests. 2020-07-06 16:36:36 -07:00
test_messages.py tests: Move test_near_pm_message_url to test_message_fetch.py. 2020-07-08 14:00:05 -07:00
test_middleware.py refactor: Rename bugdown words to markdown in stats related functions. 2020-06-26 17:20:40 -07:00
test_migrations.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_mirror_users.py tests: Move test_create_mirror_user_despite_race to test_mirror_users.py. 2020-07-06 16:36:36 -07:00
test_muting.py mypy: Use tuples for muted_topics. 2020-06-24 15:01:57 -07:00
test_new_users.py python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
test_onboarding.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_openapi.py openapi_py: Change condition for invalid requests. 2020-07-26 16:26:56 -07:00
test_outgoing_webhook_interfaces.py api: Remove (sender_)short_name from message APIs. 2020-07-17 11:15:14 -07:00
test_outgoing_webhook_system.py outgoing webhook tests: Make setup explicit. 2020-07-24 13:13:34 -07:00
test_populate_db.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_presence.py test_presence: Switch data setup from pointer to message flags. 2020-06-27 16:44:38 -07:00
test_push_notifications.py tests: User assertLogs to verify info logs while soft deactivation. 2020-07-27 11:02:17 -07:00
test_queue.py test_queue: Use assertLogs to verify warning in test_queue_error_json. 2020-07-27 11:02:17 -07:00
test_queue_worker.py test_queue_worker: Use assertlogs to verify logs while testing workers. 2020-07-27 11:02:17 -07:00
test_rate_limiter.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_reactions.py emoji: Rename :slight_smile: to 😄. 2020-07-21 16:49:54 -07:00
test_realm.py test_realm: Use assertLogs to avoid spam in test-backend output. 2020-07-27 11:02:17 -07:00
test_realm_domains.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_realm_emoji.py database: Remove short_name from UserProfile. 2020-07-17 11:15:15 -07:00
test_realm_export.py test_realm_export: Use assertLogs in endpoint tests to verify info log. 2020-07-27 11:02:17 -07:00
test_realm_filters.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_redis_utils.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_report.py test_report: Use assertLogs to avoid spam in test-backend output. 2020-07-27 11:02:17 -07:00
test_retention.py tests: Decouple test_retention and test_reactions. 2020-07-17 11:04:54 -07:00
test_service_bot_system.py database: Remove short_name from UserProfile. 2020-07-17 11:15:15 -07:00
test_sessions.py test_sessions: Use assertLogs to avoid spam in test-backend output. 2020-07-27 11:02:17 -07:00
test_settings.py test_settings: Verify logs of domain mismatch in password change test. 2020-07-27 11:02:17 -07:00
test_signup.py test_signup: Use assertLogs in signup tests to verify logging. 2020-07-27 11:02:17 -07:00
test_slack_importer.py tests: Avoid "import logging" for importer tests. 2020-07-24 10:45:59 -07:00
test_slack_message_conversion.py tests: Remove slow tests detection. 2020-06-30 23:34:53 -07:00
test_soft_deactivation.py tests: User assertLogs to verify info logs while soft deactivation. 2020-07-27 11:02:17 -07:00
test_subdomains.py tests: Make all tests inherit ZulipTestCase. 2020-07-01 10:48:12 -07:00
test_submessage.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_subs.py tests: Move NoRecipientIDsTest to test_subs.py. 2020-07-08 13:51:32 -07:00
test_templates.py tests: Mock patch print() in test_custom_markdown_include_extension. 2020-07-22 17:12:28 -07:00
test_thumbnail.py refactor: Rename remaining bugdown word to markdown in .py files. 2020-06-29 15:03:20 -07:00
test_timestamp.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_tornado.py tests: Avoid unchecked casts. 2020-06-22 17:18:19 -07:00
test_transfer.py tests: Avoid "import logging" in test_transfer. 2020-07-24 10:45:59 -07:00
test_tutorial.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_type_debug.py tests: Make all tests inherit ZulipTestCase. 2020-07-01 10:48:12 -07:00
test_typing.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_upload.py test_upload: Use assertLogs in upload tests to verify logs. 2020-07-27 11:02:17 -07:00
test_urls.py tests: Make all tests inherit ZulipTestCase. 2020-07-01 10:48:12 -07:00
test_user_groups.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_user_status.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test_users.py database: Remove short_name from UserProfile. 2020-07-17 11:15:15 -07:00
test_webhooks_common.py decorator: Fix type of signature-changing decorators. 2020-06-23 11:29:54 -07:00
test_widgets.py widgets: Make type checks more explicit. 2020-06-25 13:52:59 -07:00
test_zcommand.py settings: Add automatic theme detection feature. 2020-06-21 01:09:01 -07:00
test_zephyr.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00