test(discord): assert attachment and guild delivery targets

This commit is contained in:
huanghuoguoguo
2026-10-17 16:07:00 +08:00
parent c05aac538f
commit 6ea7fb9fc8
2 changed files with 17 additions and 9 deletions
@@ -613,6 +613,7 @@ def test_agent_event_keeps_image_file_and_voice_attachments():
)
agent_input = RuntimeBot._build_agent_input(event)
assert [attachment.type for attachment in agent_input.attachments] == ['image', 'file', 'voice']
assert agent_input.attachments[0].url == 'https://cdn.example.test/image.png'
assert agent_input.attachments[1].name == 'input.txt'
assert agent_input.attachments[1].url == 'https://cdn.example.test/input.txt'
assert agent_input.attachments[2].content == 'dGVzdA=='