post message
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 20:59:04 +07:00
parent c286039df7
commit d8231c13a4
5 changed files with 266 additions and 241 deletions

View File

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