forked from Rockachopa/Timmy-time-dashboard
feat: code quality audit + autoresearch integration + infra hardening (#150)
This commit is contained in:
committed by
GitHub
parent
fd0ede0d51
commit
ae3bb1cc21
@@ -4,7 +4,7 @@ pyttsx3 is not available in CI, so all tests mock the engine.
|
||||
"""
|
||||
|
||||
import threading
|
||||
from unittest.mock import patch, MagicMock, PropertyMock
|
||||
from unittest.mock import MagicMock, PropertyMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -29,6 +29,7 @@ class TestVoiceTTS:
|
||||
"""When pyttsx3 import fails, VoiceTTS degrades gracefully."""
|
||||
with patch.dict("sys.modules", {"pyttsx3": None}):
|
||||
from importlib import reload
|
||||
|
||||
import timmy_serve.voice_tts as mod
|
||||
|
||||
tts = mod.VoiceTTS.__new__(mod.VoiceTTS)
|
||||
|
||||
Reference in New Issue
Block a user