zulip/zerver/tests
Tim Abbott 127ac0df54 auth: Remove unnecessary case from validate_email_for_realm.
The removed code path was only needed due to buggy setup code in the
test_cross_realm_scenarios test.  We address that with a less buggy
workaround, and which lets us remove unnecessary complexity from this
important validation function.

Thanks for Umair Waheed for some preliminary work on this.

Fixes #7561.
2018-04-28 11:03:03 -07:00
..
fixtures tests: Move zerver/fixtures to zerver/tests/fixtures for clarity. 2018-04-19 21:50:17 -07:00
images test_upload: Add tests for `resize_emoji`. 2018-04-16 11:52:44 -07:00
__init__.py
test_alert_words.py zerver/tests: Use python 3 syntax for typing in most files. 2017-11-16 21:52:01 -08:00
test_attachments.py lint: Prevent `self: Any` annotations. 2017-12-08 19:00:18 -08:00
test_audit_log.py zerver/tests: Use python 3 syntax for typing in most files. 2017-11-16 21:52:01 -08:00
test_auth_backends.py portico: Update text on confirm_continue_registration. 2018-04-25 08:50:24 -07:00
test_bots.py bots: Clean up editing bots impacting non-bot users. 2018-04-02 18:58:26 -07:00
test_bugdown.py tests: Move zerver/fixtures to zerver/tests/fixtures for clarity. 2018-04-19 21:50:17 -07:00
test_compatibility.py zerver/tests: Use python 3 syntax for typing in most files. 2017-11-16 21:52:01 -08:00
test_custom_profile_data.py profile: Add choice field. 2018-04-26 00:35:51 -07:00
test_decorators.py decorator: Add a test to more fully cover require_post. 2018-04-25 22:37:09 -07:00
test_digest.py digest: Add a server setting, and disable by default. 2018-03-23 14:12:01 -07:00
test_docs.py bugdown: Add {settings|my-setting} macro. 2018-04-25 13:41:24 -07:00
test_email_change.py settings: Allow admin to change email/name even if it is disabled in realm. 2018-03-02 12:17:00 -08:00
test_email_log.py zerver/tests: Use python 3 syntax for typing. 2017-11-18 15:35:57 -08:00
test_email_mirror.py email_mirror: Add a test for sending to a private stream. 2018-04-27 13:56:06 -07:00
test_embedded_bot_system.py embedded bots: Test that BotHandler.initialize is called. 2018-02-28 12:31:38 -08:00
test_event_queue.py minor: Clean up how we set flags in events. 2018-03-28 15:56:03 -07:00
test_events.py profile: Add choice field. 2018-04-26 00:35:51 -07:00
test_export.py upload: Rename upload_message_image to upload_message_file. 2018-03-30 13:38:31 -07:00
test_external.py tests: Replace api_auth usages with auth methods in zerver/tests. 2017-12-18 09:24:09 -05:00
test_feedback.py Add basic test for FeedbackBot. 2018-03-04 13:31:33 -08:00
test_home.py org setting: Add time limits for message deleting. 2018-04-27 19:22:28 -07:00
test_hotspots.py hotspots: Add ALWAYS_SEND_ALL_HOTSPOTS in dev_settings. 2018-03-19 10:39:43 -07:00
test_i18n.py Renamed 'Register' to 'Sign up' including translations 2017-12-18 10:02:15 -05:00
test_json_encoder_for_html.py zerver: Remove simplejson dependency. 2017-11-21 21:51:48 -08:00
test_link_embed.py embed link: Add test for link_embed_data_from_cache. 2018-04-05 10:48:40 -07:00
test_logging_handlers.py test_logging_handlers: Mock out `git describe` because can be slow. 2018-03-23 18:24:51 -07:00
test_management_commands.py management command: Add unit test for MultipleObjectsReturned case. 2018-03-18 22:50:03 -07:00
test_message_edit_notifications.py python: Wrap long def lines in test files. 2017-11-16 22:00:53 -08:00
test_messages.py auth: Remove unnecessary case from validate_email_for_realm. 2018-04-28 11:03:03 -07:00
test_middleware.py zerver/tests: Use python 3 syntax for typing. 2017-11-18 15:35:57 -08:00
test_muting.py tests: Replace api_auth usages with auth methods in zerver/tests. 2017-12-18 09:24:09 -05:00
test_narrow.py tests: Move zerver/fixtures to zerver/tests/fixtures for clarity. 2018-04-19 21:50:17 -07:00
test_new_users.py models: Replace core team with Realm.INITIAL_PRIVATE_STREAM_NAME. 2017-11-21 17:39:51 -08:00
test_notifications.py tests: Refactor use of test and webhook data fixtures. 2018-04-19 21:50:29 -07:00
test_outgoing_webhook_interfaces.py zerver/tests: Use python 3 syntax for typing in most files. 2017-11-16 21:52:01 -08:00
test_outgoing_webhook_system.py Add stream ids to urls for stream-related narrows. 2018-02-19 09:03:11 -08:00
test_presence.py notifications: Fix missed-message emails for presence-idle users. 2018-03-16 16:30:23 -07:00
test_push_notifications.py test_push_notifications: Cover the last lines of validate_api_key. 2018-04-25 22:36:48 -07:00
test_queue.py queue: Don't blow up when a connection closes quickly. 2018-03-20 16:49:05 -07:00
test_queue_worker.py Add tests for SignupWorker error handling. 2018-02-28 12:31:38 -08:00
test_reactions.py emoji: Migrate realm emoji to be addressed by `id` rather than `name`. 2018-03-20 22:24:44 -07:00
test_realm.py org setting: Add time limits for message deleting. 2018-04-27 19:22:28 -07:00
test_realm_domains.py validate_domain: Add verification of domain length. 2018-04-23 09:29:03 -07:00
test_realm_emoji.py emoji: Fix the filtering condition in `check_emoji_admin()`. 2018-03-20 22:24:44 -07:00
test_realm_filters.py i18n: Fix use of 'realm administrator' in translated strings. 2018-03-07 17:15:29 -08:00
test_report.py tests: Refactor use of test and webhook data fixtures. 2018-04-19 21:50:29 -07:00
test_retention.py Eliminate get_user_profile_by_email from test_classes. 2017-11-26 15:47:56 -08:00
test_service_bot_system.py backend: Call real endpoint in create_test_bot(). 2018-02-09 12:30:24 -08:00
test_sessions.py tests: Pass a realm option to login for non-zulip realms. 2017-11-17 15:32:42 -08:00
test_settings.py settings: Change error for "no data" to something more friendly. 2018-01-23 14:38:59 -05:00
test_signup.py slack import: Be less strict in `check_subdomain_available`. 2018-04-23 11:48:12 -07:00
test_slack_importer.py slack import: Fix issues with Slack empty files. 2018-04-25 10:20:55 -07:00
test_slack_message_conversion.py tests: Move zerver/fixtures to zerver/tests/fixtures for clarity. 2018-04-19 21:50:17 -07:00
test_soft_deactivation.py populate_db: Add new user of "guest" type. 2018-04-20 16:20:00 -07:00
test_stripe.py tests: Move zerver/fixtures to zerver/tests/fixtures for clarity. 2018-04-19 21:50:17 -07:00
test_subdomains.py zerver/tests: Use python 3 syntax for typing (part 4). 2017-11-21 22:01:19 -08:00
test_subs.py populate_db: Add new user of "guest" type. 2018-04-20 16:20:00 -07:00
test_templates.py hotkeys: Replace C with x for composing PM. 2018-04-01 16:13:05 -07:00
test_timestamp.py zerver/tests: Use python 3 syntax for typing. 2017-11-08 12:50:27 -08:00
test_tornado.py Test MessageSenderWorker with Electron as user agent. 2018-02-28 12:31:38 -08:00
test_tutorial.py zerver/tests: Use python 3 syntax for typing. 2017-11-08 12:50:27 -08:00
test_type_debug.py mypy: Remove some now-unnecessary type: ignores. 2018-03-28 10:39:05 -07:00
test_typing.py tests: Replace api_auth usages with auth methods in zerver/tests. 2017-12-18 09:24:09 -05:00
test_unread.py api: Return anchor in get_messages when use_first_unread_anchor=True. 2018-02-16 10:06:20 -08:00
test_upload.py avatars: Fix 500 with the /avatar/ URL to be a 404. 2018-04-18 12:43:57 -07:00
test_urls.py django-2.0: Shift to resolvers from urlresolvers. 2018-01-30 10:53:54 -08:00
test_user_groups.py user-groups: Add backend enforcing for new modification settings. 2018-03-23 14:44:47 -07:00
test_users.py users: Improve testing for user_ids_to_users. 2018-04-04 16:31:30 -07:00
test_zephyr.py zerver/tests: Use python 3 syntax for typing (part 3). 2017-11-21 22:01:19 -08:00
tests.py