vocero-s2s/tests/test_llm_utils.py
valenti b5f82fb48c
Some checks are pending
CI / ruff (push) Waiting to run
CI / mypy (push) Waiting to run
CI / pytest (push) Waiting to run
CI / package (push) Waiting to run
CI / Install smoke (${{ matrix.label }}) (linux, ubuntu-latest) (push) Blocked by required conditions
CI / Install smoke (${{ matrix.label }}) (macos-arm64, macos-14) (push) Blocked by required conditions
first git
2026-08-26 11:30:14 +00:00

10 lines
383 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from speech_to_speech.LLM.utils import remove_unspeechable
def test_remove_unspeechable_normalizes_smart_apostrophes() -> None:
assert remove_unspeechable("Ill reply if heres the plan.") == "I'll reply if here's the plan."
def test_remove_unspeechable_keeps_text_and_drops_emoji() -> None:
assert remove_unspeechable("Hello 👋 lobster 🦞") == "Hello lobster "