fix: follow-up for salvaged PRs #6293, #7387, #9091, #13131

- 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:
Teknium 2026-04-20 14:05:15 -07:00 committed by Teknium
parent 353dc8d3ec
commit 36e8435d3e
2 changed files with 5 additions and 3 deletions

View file

@ -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",

View file

@ -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):