test: align matrix dispatch chat id contract

This commit is contained in:
Mikhail Putilovskij 2026-04-24 13:29:49 +03:00
parent 9ccba161a2
commit a65227e490

View file

@ -276,7 +276,7 @@ async def test_bot_assigns_platform_chat_id_for_existing_managed_room():
runtime.dispatcher.dispatch.assert_awaited_once() runtime.dispatcher.dispatch.assert_awaited_once()
async def test_bot_routes_plain_messages_via_platform_chat_id(): async def test_bot_keeps_local_chat_id_for_plain_messages():
runtime = build_runtime(platform=MockPlatformClient()) runtime = build_runtime(platform=MockPlatformClient())
await set_room_meta( await set_room_meta(
runtime.store, runtime.store,
@ -297,7 +297,7 @@ async def test_bot_routes_plain_messages_via_platform_chat_id():
await bot.on_room_message(room, event) await bot.on_room_message(room, event)
dispatched = runtime.dispatcher.dispatch.await_args.args[0] dispatched = runtime.dispatcher.dispatch.await_args.args[0]
assert dispatched.chat_id == "41" assert dispatched.chat_id == "C1"
assert dispatched.text == "hello" assert dispatched.text == "hello"