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

Method setUpClass

tests/test_server.py:75–81  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

73class TestServerInferenceAccuracy(unittest.TestCase):
74 @classmethod
75 def setUpClass(cls):
76 cls.mock_pyaudio_patch = mock.patch('pyaudio.PyAudio')
77 cls.mock_pyaudio = cls.mock_pyaudio_patch.start()
78 cls.mock_pyaudio.return_value.open.return_value = mock.MagicMock()
79
80 cls.server_process = subprocess.Popen(["python", "run_server.py"])
81 time.sleep(2)
82
83 @classmethod
84 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected