ир
This commit is contained in:
@@ -29,6 +29,19 @@ def test_build_channel_text_includes_phrase() -> None:
|
||||
assert "готов к игре" in text
|
||||
|
||||
|
||||
def test_build_channel_text_can_prefix_hidden_link() -> None:
|
||||
config = {
|
||||
"template_text": "header\n\n{{actors}}",
|
||||
"hidden_link_url": "https://example.com/image.png",
|
||||
"hidden_link_char": "​",
|
||||
"actors": [],
|
||||
}
|
||||
|
||||
text = build_channel_text(config, {"actors": {}}, include_hidden_link=True)
|
||||
|
||||
assert text.startswith('<a href="https://example.com/image.png">​</a>')
|
||||
|
||||
|
||||
def test_build_channel_text_supports_per_actor_placeholders() -> None:
|
||||
config = {
|
||||
"template_text": "HEAD\n\n{{actor:astat}}\n\nMID\n\n{{actor:mari}}\n\nTAIL",
|
||||
|
||||
Reference in New Issue
Block a user