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

@ -57,10 +57,10 @@ class TestMentionStrippedCommandDispatch:
mentions=[bot_user],
)
await dispatch(discord_adapter, msg)
# Message is accepted (not dropped), but not dispatched as a command
discord_adapter.send.assert_awaited()
# Message is accepted (not dropped by mention gate), but since it doesn't
# 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)
# /help command output lists /new — if it went through as text, it won't
assert response is None or "/new" not in response
async def test_no_mention_in_channel_dropped(self, discord_adapter):