fix: make VAD unit tests work with minimal dependencies

By mocking PyTorch and ZMQ and adding the Numpy dependency.

ref: N25B-213
This commit is contained in:
Twirre Meulenbelt
2025-10-28 18:13:00 +01:00
parent fd1facedd1
commit f73f510608
4 changed files with 19 additions and 0 deletions

4
uv.lock generated
View File

@@ -1332,6 +1332,7 @@ source = { virtual = "." }
dependencies = [
{ name = "fastapi", extra = ["all"] },
{ name = "mlx-whisper", marker = "sys_platform == 'darwin'" },
{ name = "numpy" },
{ name = "openai-whisper" },
{ name = "pyaudio" },
{ name = "pydantic" },
@@ -1358,6 +1359,7 @@ integration-test = [
{ name = "soundfile" },
]
test = [
{ name = "numpy" },
{ name = "pytest" },
{ name = "pytest-asyncio" },
{ name = "pytest-cov" },
@@ -1368,6 +1370,7 @@ test = [
requires-dist = [
{ name = "fastapi", extras = ["all"], specifier = ">=0.115.6" },
{ name = "mlx-whisper", marker = "sys_platform == 'darwin'", specifier = ">=0.4.3" },
{ name = "numpy", specifier = ">=2.3.3" },
{ name = "openai-whisper", specifier = ">=20250625" },
{ name = "pyaudio", specifier = ">=0.2.14" },
{ name = "pydantic", specifier = ">=2.12.0" },
@@ -1392,6 +1395,7 @@ dev = [
]
integration-test = [{ name = "soundfile", specifier = ">=0.13.1" }]
test = [
{ name = "numpy", specifier = ">=2.3.3" },
{ name = "pytest", specifier = ">=8.4.2" },
{ name = "pytest-asyncio", specifier = ">=1.2.0" },
{ name = "pytest-cov", specifier = ">=7.0.0" },