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()