Files
wehub-resource-sync 5296d0e97c
CI / Ban suppressions and legacy annotations (push) Has been cancelled
CI / pytest (push) Has been cancelled
CI / ruff-check (push) Has been cancelled
CI / ruff-format (push) Has been cancelled
CI / ty (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:44 +08:00

18 lines
606 B
Python

from free_claude_code.messaging.rendering.profiles import build_rendering_profile
def test_discord_rendering_profile_has_plain_parse_mode():
profile = build_rendering_profile("discord")
assert profile.parse_mode is None
assert profile.limit_chars == 1900
assert profile.format_status("x", "Working", None).startswith("x")
def test_telegram_rendering_profile_uses_markdown_v2():
profile = build_rendering_profile("telegram")
assert profile.parse_mode == "MarkdownV2"
assert profile.limit_chars == 3900
assert profile.format_status("x", "Working", None).startswith("x")