- Fix duplicate 'timezone' import in e2e conftest - Fix test_text_before_command_not_detected asserting send() is awaited when no agent is present in mock setup (text messages don't produce command output)
This commit is contained in:
@@ -204,6 +204,8 @@ AUTHOR_MAP = {
|
|||||||
"don.rhm@gmail.com": "donrhmexe",
|
"don.rhm@gmail.com": "donrhmexe",
|
||||||
"dorukardahan@hotmail.com": "dorukardahan",
|
"dorukardahan@hotmail.com": "dorukardahan",
|
||||||
"dsocolobsky@gmail.com": "dsocolobsky",
|
"dsocolobsky@gmail.com": "dsocolobsky",
|
||||||
|
"dylan.socolobsky@lambdaclass.com": "dsocolobsky",
|
||||||
|
"ignacio.avecilla@lambdaclass.com": "IAvecilla",
|
||||||
"duerzy@gmail.com": "duerzy",
|
"duerzy@gmail.com": "duerzy",
|
||||||
"emozilla@nousresearch.com": "emozilla",
|
"emozilla@nousresearch.com": "emozilla",
|
||||||
"fancydirty@gmail.com": "fancydirty",
|
"fancydirty@gmail.com": "fancydirty",
|
||||||
|
|||||||
@@ -57,10 +57,10 @@ class TestMentionStrippedCommandDispatch:
|
|||||||
mentions=[bot_user],
|
mentions=[bot_user],
|
||||||
)
|
)
|
||||||
await dispatch(discord_adapter, msg)
|
await dispatch(discord_adapter, msg)
|
||||||
# Message is accepted (not dropped), but not dispatched as a command
|
# Message is accepted (not dropped by mention gate), but since it doesn't
|
||||||
discord_adapter.send.assert_awaited()
|
# start with / it's routed as text — no command output, and no agent in this
|
||||||
|
# mock setup means no send call either.
|
||||||
response = get_response_text(discord_adapter)
|
response = get_response_text(discord_adapter)
|
||||||
# /help command output lists /new — if it went through as text, it won't
|
|
||||||
assert response is None or "/new" not in response
|
assert response is None or "/new" not in response
|
||||||
|
|
||||||
async def test_no_mention_in_channel_dropped(self, discord_adapter):
|
async def test_no_mention_in_channel_dropped(self, discord_adapter):
|
||||||
|
|||||||
Reference in New Issue
Block a user