mirror of https://github.com/zulip/zulip.git
4381ce74aa
We already check in get_service_bot_events() if a bot is mentioned, and then only pass on the call to the bot handler if it is. The commit removes the additional check in the embedded bot queue processor simply because it is impossible to obtain test coverage for it (there is no meaningful way to trigger the content of the if-clause, because there will never be a message reaching the bot without @-mentioning it. To alleviate the danger of a potential regression, the check is not removed completely, but rather replaced by an assert statement. |
||
---|---|---|
.. | ||
__init__.py | ||
queue_processors.py |