zulip/zerver/tests
Steve Howell 6659664e59 Simplify/fix cross-realm validation in recipient_for_emails().
We now simply exclude all cross-realm bots from the set of emails
under consideration, and then if the remaining emails are all in
the same realm, we're good.

This fix changes two behaviors:
* You can no longer send a PM to an ordinary user in another realm
  by piggy-backing a cross-realm bot on to the message.  (This was
  basically a bug, but it would never manifest under current
  configurations.)
* You will be able to send PMs to multiple cross-realm bots at once.
  (This was an arbitrary restriction.  We don't really care about this
  scenario much yet, and it fell out of the new implementation.)
2016-11-02 22:10:49 -07:00
..
images Update types of images accepted as avatars. 2016-07-26 16:36:47 +05:30
markdown Remove extra new lines at the ends of Zulip authoried files. 2016-09-26 21:05:24 -07:00
webhooks Normalize github issue or PR comment event's subject and content. 2016-10-20 23:15:51 -07:00
__init__.py Fix missing zerver/tests/__init__.py. 2016-04-11 22:34:22 -07:00
test_alert_words.py tests: Add test_update_alert_words(). 2016-09-18 22:08:53 -07:00
test_auth_backends.py Refactor GitHub authentication backend tests. 2016-11-02 21:06:17 -07:00
test_bugdown.py test_bugdown: Fix misplaced type annotation. 2016-11-01 20:40:22 -07:00
test_decorators.py Add tests to check subdomains with auth decorators. 2016-10-21 12:21:47 +05:00
test_email_mirror.py Annotate zerver/tests/test_email_mirror.py. 2016-10-11 11:28:52 -07:00
test_events.py Send user_ids for update events. 2016-10-28 13:40:14 -07:00
test_export.py Remove extra new lines at the ends of Zulip authoried files. 2016-09-26 21:05:24 -07:00
test_external.py RateLimitTests: Remove now-unnecessary API key logic. 2016-09-27 14:54:10 -07:00
test_i18n.py mypy: Remove a bunch of now-unnecessary type: ignore annotations. 2016-10-17 11:48:34 -07:00
test_integrations.py Fix EXTERNAL_HOST computations in test_settings.py. 2016-10-05 19:04:55 -07:00
test_management_commands.py Add mypy annotations to various integrations-related functions. 2016-09-11 17:11:25 -07:00
test_messages.py Simplify/fix cross-realm validation in recipient_for_emails(). 2016-11-02 22:10:49 -07:00
test_narrow.py Use make_stream() in test_narrow.py. 2016-10-22 18:09:34 -07:00
test_presence.py Remove json/get_active_statuses endpoint. 2016-09-27 14:33:56 -07:00
test_push_notifications.py tests: Add test_push_api(). 2016-09-15 06:39:41 -07:00
test_realm_emoji.py tests: Add coverage for RealmEmoji.__unicode__(). 2016-09-19 14:57:53 -07:00
test_report.py tests: Add test_report.py. 2016-09-16 07:01:40 -07:00
test_retention.py retention-policy: Add tool to determine expired messages. 2016-10-25 15:38:08 -07:00
test_signup.py Test registration of mirror dummy user. 2016-11-02 18:17:29 -07:00
test_subs.py Deprecate /json/streams. 2016-10-28 13:44:46 -07:00
test_templates.py subdomains: Use subdomain host in password reset emails. 2016-08-22 22:39:52 -07:00
test_tutorial.py Remove extra new lines at the ends of Zulip authoried files. 2016-09-26 21:05:24 -07:00
test_type_debug.py Add automated tests for zerver/lib/type_debug.py. 2016-07-23 14:38:28 -07:00
test_typing.py Typing backend: use dict instead of user profile for sender in event. 2016-10-26 13:12:18 -07:00
test_unread.py Remove extra new lines at the ends of Zulip authoried files. 2016-09-26 21:05:24 -07:00
test_upload.py Add medium size avatars for use on the user's own settings page. 2016-10-25 09:42:14 -07:00
test_urls.py Remove rest_dispatch hack and optimize imports. 2016-06-24 16:11:03 -07:00
tests.py Send user_id to the client in more places. 2016-10-28 13:40:14 -07:00