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

This commit is contained in:
2026-04-02 20:36:20 +07:00
parent ef40fc25ee
commit c286039df7
5 changed files with 405 additions and 77 deletions

View File

@@ -3,7 +3,7 @@ from session_bot.render import build_channel_text
def test_build_channel_text_includes_phrase_and_status() -> None:
config = {
"header": "header",
"header_html": "<b>header</b>",
"actors": [
{
"key": "astat",
@@ -21,6 +21,7 @@ def test_build_channel_text_includes_phrase_and_status() -> None:
text = build_channel_text(config, state)
assert "ASTAT" in text
assert "<b>header</b>" in text
assert '<a href="https://t.me/example"><b>ASTAT</b></a>' in text
assert "исполняет роль" in text
assert "готов к игре" in text