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

View File

@@ -18,6 +18,9 @@ def audio_out_socket():
@pytest.fixture
def streaming(audio_in_socket, audio_out_socket):
import torch
torch.hub.load.return_value = (..., ...) # Mock
return Streaming(audio_in_socket, audio_out_socket)