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