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:
parent
6f1bdb4077
commit
97a3dc35ea
6 changed files with 382 additions and 0 deletions
|
|
@ -3,11 +3,14 @@ from __future__ import annotations
|
|||
import pytest
|
||||
|
||||
from adapter.matrix.store import (
|
||||
clear_pending_confirm,
|
||||
get_pending_confirm,
|
||||
get_room_meta,
|
||||
get_room_state,
|
||||
get_skills_message_id,
|
||||
get_user_meta,
|
||||
next_chat_id,
|
||||
set_pending_confirm,
|
||||
set_room_meta,
|
||||
set_room_state,
|
||||
set_skills_message_id,
|
||||
|
|
@ -70,3 +73,14 @@ async def test_next_chat_id_increments(store: InMemoryStore):
|
|||
async def test_skills_message_roundtrip(store: InMemoryStore):
|
||||
await set_skills_message_id(store, "!room", "$event")
|
||||
assert await get_skills_message_id(store, "!room") == "$event"
|
||||
|
||||
|
||||
async def test_pending_confirm_roundtrip(store: InMemoryStore):
|
||||
assert await get_pending_confirm(store, "!room:m.org") is None
|
||||
|
||||
meta = {"action_id": "test", "description": "Do thing"}
|
||||
await set_pending_confirm(store, "!room:m.org", meta)
|
||||
assert await get_pending_confirm(store, "!room:m.org") == meta
|
||||
|
||||
await clear_pending_confirm(store, "!room:m.org")
|
||||
assert await get_pending_confirm(store, "!room:m.org") is None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue