Spaces:
Running
Running
Download tests/messaging/test_rendering_profiles.py from dherain24/claude-proxy: direct link, hf CLI and curl.
- Browser
- Download file 606 Bytes
-
https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/tests/messaging/test_rendering_profiles.py
- Command line
-
hf download hf://spaces/dherain24/claude-proxy/tests/messaging/test_rendering_profiles.py
-
curl -L -o test_rendering_profiles.py https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/tests/messaging/test_rendering_profiles.py
606 Bytes
| 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") | |