zulip/zerver/tests
Tim Abbott 93ea4128ac auth: Require the realm_name field in RegistrationForm.
Previously, the only required field in RegistrationForm was the full
name (and possibly ToS, depending on settings).  This meant that if
LDAP was configured, realm creation would break, because the form
would be valid the first time one landed on it, before the user even
filled it out!

The correct fix is to make the extra fields required in
RegistrationForm in the event that we're doing realm creation.

It's possible that a cleaner fix would be to use a subclass.

With a test from Umair Waheed Khan.

Fixes #5387.
2017-06-15 11:04:25 -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 Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_attachments.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_audit_log.py Switch change_tos_version to use RealmAuditLog. 2017-05-29 15:24:01 -07:00
test_auth_backends.py pep8: Add compliance with rule E261 test_auth_backends.py. 2017-06-04 15:06:52 +05:30
test_bots.py bots: Add UI to view bot types of existing bots in "Your bots". 2017-06-15 10:08:31 -07:00
test_bugdown.py realm_emoji: Make sure that a deactivated realm emoji can't be used. 2017-06-15 02:59:57 -07:00
test_compatibility.py mobile: Add an endpoint for checking compatibility. 2017-02-03 09:55:34 -08:00
test_custom_profile_data.py tests: Remove get_user_profile_by_email from numerous tests. 2017-05-24 15:19:20 -07:00
test_decorators.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_docs.py docs: Fix tests for error pages. 2017-06-14 21:21:36 -07:00
test_email_change.py Replace hamlet@zulip.com with example_email('hamlet'). 2017-05-24 19:37:36 -07:00
test_email_mirror.py pep8: Add compliance with rule E261 test_email_mirror.py. 2017-05-31 17:07:15 -07:00
test_events.py bots: Add UI to view bot types of existing bots in "Your bots". 2017-06-15 10:08:31 -07:00
test_export.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_external.py tests: Replace mit_user().email with mit_email(). 2017-05-24 12:44:43 -07:00
test_home.py bots: Add UI to view bot types of existing bots in "Your bots". 2017-06-15 10:08:31 -07:00
test_hotspots.py hotspots: Change hotspots to have a name and a description. 2017-06-13 12:59:33 -07:00
test_i18n.py testing: Reset active language. 2017-05-24 11:35:17 -07:00
test_link_embed.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_logging_handlers.py pep8: Add compliance with rule E261 test_logging_handlers.py. 2017-06-04 15:07:26 +05:30
test_management_commands.py create_realm: Fix heading for creating an organization. 2017-04-27 11:12:09 -07:00
test_messages.py message_edit: Replace highlighting replaced text with delete / insert. 2017-06-07 11:06:15 -07:00
test_middleware.py tests: Extract zerver/tests/test_middleware.py. 2017-03-08 03:57:37 -08:00
test_muting.py tests: Remove get_user_profile_by_email from most tests. 2017-05-24 13:05:19 -07:00
test_narrow.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_new_users.py test: Add test_notify_realm_of_new_user. 2017-05-28 19:14:52 -07:00
test_notifications.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_outgoing_webhook_system.py lint: Fix trailing newlines in outgoing webhook tests. 2017-05-25 16:28:11 -07:00
test_presence.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_push_notifications.py Use absolute URLs in GCM push notifications. 2017-06-15 03:56:59 -07:00
test_queue_worker.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_reactions.py realm_emoji: Make sure that a deactivated realm emoji can't be used. 2017-06-15 02:59:57 -07:00
test_realm.py org-settings: Add backend for notifications stream. 2017-06-09 16:03:52 -07:00
test_realm_domains.py Replace iago@zulip.com with example_email('iago'). 2017-05-24 19:37:36 -07:00
test_realm_emoji.py realm_emoji.py: Allow an user to delete an emoji uploaded by them. 2017-05-29 20:21:25 -07:00
test_realm_filters.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_report.py tests: Replaced @zulip.com references with self.example_ functions. 2017-05-23 20:59:50 -07:00
test_retention.py messages: Add support for admins deleting messages. 2017-05-29 21:59:38 -07:00
test_service_bot_system.py bots: Add additional service bot tests. 2017-05-25 15:00:51 -07:00
test_sessions.py tests: Fix str/Text mypy issues in various tests. 2017-05-24 15:19:38 -07:00
test_settings.py Replace hamlet@zulip.com with example_email('hamlet'). 2017-05-24 19:37:36 -07:00
test_signup.py auth: Require the realm_name field in RegistrationForm. 2017-06-15 11:04:25 -07:00
test_subs.py Clean up var names in test_user_getting_add_peer_event(). 2017-06-10 10:43:57 -07:00
test_templates.py emails: Add html versions of emails that do not have them. 2017-06-12 23:02:28 -07:00
test_timestamp.py Replace timezone.utc with timezone_utc. 2017-04-16 12:28:56 -07:00
test_tornado.py testing: Add testing framework for Tornado. 2017-06-13 15:04:04 -07:00
test_tutorial.py tests: Remove get_user_profile_by_email from most tests. 2017-05-24 13:05:19 -07:00
test_type_debug.py pep8: Add compliance with rule E261 to test_type_debug.py. 2017-05-07 23:21:50 -07:00
test_typing.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_unread.py pep8: Add compliance with rule E261 test_unread.py. 2017-06-04 15:07:39 +05:30
test_upload.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_urls.py pep8: Add compliance with rule E261 to test_urls.py. 2017-05-18 03:00:32 +05:30
test_users.py Replace othello@zulip.com with example_email('othello'). 2017-05-24 19:37:36 -07:00
test_zephyr.py bots: Move zephyr-related files to api/integrations/zephyr/. 2017-05-26 15:07:02 -07:00
tests.py retention-period: Add retention period to front-end admin organization settings. 2017-03-25 17:57:18 -07:00