423
Some checks failed
CI / Lint (ruff + mypy) (push) Failing after 32s
CI / Run tests (push) Has been skipped
CI / Docker build test (push) Successful in 10s

This commit is contained in:
2026-04-02 21:16:05 +07:00
parent d193d2c930
commit 0626454253
3 changed files with 24 additions and 29 deletions

View File

@@ -9,8 +9,10 @@ def test_build_channel_text_includes_phrase_and_status() -> None:
{
"key": "astat",
"display_name": "ASTAT",
"display_html": "<b>ASTAT</b>",
"link": "https://t.me/example",
"pronouns": "he/him",
"meta_html": " he/him ",
"emoji": "🌟",
"default_status": "backstage",
"phrases": {"open": "принимает тейки"},
@@ -22,7 +24,7 @@ def test_build_channel_text_includes_phrase_and_status() -> None:
text = build_channel_text(config, state)
assert "[](https://example.com/image.png)" in text
assert "[ASTAT](https://t.me/example)" in text
assert '<a href="https://example.com/image.png">' in text
assert '<a href="https://t.me/example"><b>ASTAT</b></a>' in text
assert "исполняет роль" in text
assert "готов к игре" in text