test(ci): stabilize shared optional dependency baselines

This commit is contained in:
Stephen Schoettler 2026-05-13 17:29:43 -07:00
parent dd5a9502e3
commit 3c106c89a1
10 changed files with 194 additions and 70 deletions

View file

@ -3,7 +3,6 @@
import json
from unittest.mock import MagicMock, patch
import numpy as np
import pytest
@ -27,7 +26,7 @@ def mock_kittentts_module():
"""Inject a fake kittentts + soundfile module that return stub objects."""
fake_model = MagicMock()
# 24kHz float32 PCM at ~2s of silence
fake_model.generate.return_value = np.zeros(48000, dtype=np.float32)
fake_model.generate.return_value = [0.0] * 48000
fake_cls = MagicMock(return_value=fake_model)
fake_kittentts = MagicMock()
fake_kittentts.KittenTTS = fake_cls