post message
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user