zulip/zerver/tests
Steve Howell 40b18094ec alert words: Refactor alert word detection.
The bugdown parser no longer has a concept of which users need which
alert words, since it can't really do anything actionable with that info
from a rendering standpoint.

Instead, our calling code passes in a set of search words to the parser.
The parser returns the list of words it finds in the message.
Then the model method builds up the list of user ids that should be
flagged as having alert words in the message.

This refactoring is a little more involved than I'd like, but there are
still some circular dependency issues with rendering code, so I need to
pass in the rather complicated realm_alert_words data structure all the way
from the action through the model to the renderer.

This change shouldn't change the overall behavior of the system, except
that it does remove some duplicate regex checks that were occurring when
multiple users may have had the same alert word.
2016-09-23 15:21:17 -07:00
..
images Update types of images accepted as avatars. 2016-07-26 16:36:47 +05:30
markdown Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
webhooks Add branch name to topic in Gitlab integration. 2016-09-23 10:04:01 -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 Fix nondeterministic parsing failures in GoogleLoginTest. 2016-09-13 18:13:28 -07:00
test_bugdown.py alert words: Refactor alert word detection. 2016-09-23 15:21:17 -07:00
test_decorators.py Move WebhookTestCase class from test_hooks.py to test_helpers.py. 2016-09-23 10:02:16 -07:00
test_email_mirror.py bug: Fix traceback in get_missed_message_token_from_address(). 2016-09-22 13:41:26 -07:00
test_events.py tests: Renamed AuthedTestCase to ZulipTestCase. 2016-08-22 19:07:44 -07:00
test_export.py Annotate test_export.read_file(). 2016-09-11 17:15:35 -07:00
test_external.py tests: Add test_push_api(). 2016-09-15 06:39:41 -07:00
test_i18n.py tests: Renamed AuthedTestCase to ZulipTestCase. 2016-08-22 19:07:44 -07:00
test_integrations.py integrations: Add test for integrations context. 2016-09-13 22:31: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 tests: Add test_fetch_raw_message(). 2016-09-19 14:25:21 -07:00
test_narrow.py tests: Add test_messages_in_narrow(). 2016-09-19 14:25:21 -07:00
test_presence.py tests: Extract test_presence.py 2016-09-13 14:51:36 -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_signup.py Add test for password reset flow. 2016-09-13 18:16:50 -07:00
test_subs.py test: Add coverage for Recipient.__unicode__(). 2016-09-19 18:25:02 -07:00
test_templates.py subdomains: Use subdomain host in password reset emails. 2016-08-22 22:39:52 -07:00
test_tutorial.py tests: Add test_tutorial.py. 2016-09-15 10:15:18 -07:00
test_type_debug.py Add automated tests for zerver/lib/type_debug.py. 2016-07-23 14:38:28 -07:00
test_unread.py tests: Renamed AuthedTestCase to ZulipTestCase. 2016-08-22 19:07:44 -07:00
test_upload.py tests: Add test_serve_s3_error_handling(). 2016-09-17 12:13:07 -07:00
test_urls.py Remove rest_dispatch hack and optimize imports. 2016-06-24 16:11:03 -07:00
tests.py tests: Add ModelTest class for miscellaneous model tests. 2016-09-19 18:25:02 -07:00