ир
Some checks failed
CI / Lint (ruff + mypy) (push) Failing after 33s
CI / Run tests (push) Has been skipped
CI / Docker build test (push) Successful in 12s
Security / Dependency security scan (push) Failing after 48s

This commit is contained in:
2026-04-03 01:03:52 +07:00
parent 94afa86920
commit a13f4e378c
7 changed files with 308 additions and 78 deletions

View File

@@ -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">&#8203;</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",