[kimi] Add unit tests for voice_tts.py (#768) #829

Merged
kimi merged 1 commits from kimi/issue-768 into main 2026-03-21 21:56:46 +00:00

1 Commits

Author SHA1 Message Date
kimi
fb6fd4e4f7 test: Add unit tests for src/timmy_serve/voice_tts.py
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
Adds comprehensive unit tests for VoiceTTS class:
- __init__ with pyttsx3 import failure (mocked)
- speak() when not available (skips gracefully)
- set_rate() and set_volume() property updates
- get_voices() when engine is None
- set_voice() with/without engine
- available property behavior

All tests mock pyttsx3 so they run without audio hardware.

Fixes #768
2026-03-21 17:56:11 -04:00