test(01-04): add matrix space regression coverage

- add MAT-01..MAT-07 and MAT-09..MAT-12 regression tests for matrix adapter
- extend store and dispatcher coverage for pending confirmations and settings dashboard
- verify matrix adapter suite and full pytest suite stay green
This commit is contained in:
Mikhail Putilovskij 2026-04-02 23:03:17 +03:00
parent 6f1bdb4077
commit 97a3dc35ea
6 changed files with 382 additions and 0 deletions

View file

@ -151,3 +151,20 @@ async def test_bot_ignores_its_own_messages():
runtime.dispatcher.dispatch.assert_not_awaited()
bot._send_all.assert_not_awaited()
async def test_mat11_settings_returns_dashboard():
runtime = build_runtime(platform=MockPlatformClient())
start = IncomingCommand(user_id="u1", platform="matrix", chat_id="C1", command="start")
await runtime.dispatcher.dispatch(start)
settings_cmd = IncomingCommand(user_id="u1", platform="matrix", chat_id="C1", command="settings")
result = await runtime.dispatcher.dispatch(settings_cmd)
assert len(result) >= 1
text = result[0].text
assert "Скиллы" in text or "скиллы" in text.lower()
assert "Изменить" in text or "!skills" in text
assert "!connectors" not in text
assert "!whoami" not in text