MCPcopy
hub / github.com/collabora/WhisperLive / setUp

Method setUp

tests/test_batch_inference.py:12–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class TestBatchInferenceWorker(unittest.TestCase):
12 def setUp(self):
13 self.mock_transcriber = MagicMock()
14 self.worker = BatchInferenceWorker(
15 transcriber=self.mock_transcriber,
16 max_batch_size=8,
17 batch_window_ms=200,
18 )
19 self.worker.start()
20
21 def tearDown(self):
22 self.worker.stop()

Callers

nothing calls this directly

Calls 2

startMethod · 0.80

Tested by

no test coverage detected