test(01-06): add failing matrix command-only regressions
- Assert skills text no longer includes reaction-era labels - Require converter to drop reaction callback support - Lock !settings dashboard to read-only snapshot copy
This commit is contained in:
parent
80800be60c
commit
974935c880
3 changed files with 12 additions and 28 deletions
|
|
@ -3,7 +3,6 @@ from __future__ import annotations
|
|||
from adapter.matrix.reactions import (
|
||||
build_confirmation_text,
|
||||
build_skills_text,
|
||||
reaction_to_skill_index,
|
||||
)
|
||||
from sdk.interface import UserSettings
|
||||
|
||||
|
|
@ -20,6 +19,10 @@ def test_build_skills_text():
|
|||
assert "web-search" in text
|
||||
assert "fetch-url" in text
|
||||
assert "!skill on/off" in text
|
||||
assert "1️⃣" not in text
|
||||
assert "2️⃣" not in text
|
||||
assert "👍" not in text
|
||||
assert "❌" not in text
|
||||
|
||||
|
||||
def test_build_confirmation_text():
|
||||
|
|
@ -27,8 +30,3 @@ def test_build_confirmation_text():
|
|||
assert "Отправить письмо?" in text
|
||||
assert "!yes" in text
|
||||
assert "!no" in text
|
||||
|
||||
|
||||
def test_reaction_to_skill_index():
|
||||
assert reaction_to_skill_index("1️⃣") == 1
|
||||
assert reaction_to_skill_index("👍") is None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue