From 1372fe89f63b6c4d3a7aadd118d306cb37a2c83b Mon Sep 17 00:00:00 2001
From: Pim Hutting
Date: Wed, 19 Nov 2025 11:50:07 +0000
Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Twirre
---
test/unit/agents/test_vad_streaming.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/test/unit/agents/test_vad_streaming.py b/test/unit/agents/test_vad_streaming.py
index 8a0e072..47e8332 100644
--- a/test/unit/agents/test_vad_streaming.py
+++ b/test/unit/agents/test_vad_streaming.py
@@ -53,6 +53,12 @@ def patch_settings(monkeypatch):
async def simulate_streaming_with_probabilities(streaming, probabilities: list[float]):
+ """
+ Simulates a streaming scenario with given VAD model probabilities for testing purposes.
+
+ :param streaming: The streaming component to be tested.
+ :param probabilities: A list of probabilities representing the outputs of the VAD model.
+ """
model_item = MagicMock()
model_item.item.side_effect = probabilities
streaming.model = MagicMock()