[kimi] Add unit tests for voice_tts.py (#768) #829
Reference in New Issue
Block a user
Delete Branch "kimi/issue-768"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #768
Adds comprehensive unit tests for
src/timmy_serve/voice_tts.py:Test Coverage:
__init__with pyttsx3 import success and failure (mocked)speak()when not available (skips gracefully)speak_sync()when not availableset_rate()updates internal rate and engine propertyset_volume()clamps values to 0.0-1.0 rangeget_voices()when engine is None (returns empty list)get_voices()with mock voices including edge casesset_voice()with/without engineavailableproperty behaviorTechnical Details:
pyttsx3so they run without audio hardwareVoiceTTS.__new__()pattern for isolated test instancestests/integrations/test_voice_tts_functional.pyAll 2811 tests pass including 13 new tests in this file.