MCPcopy
hub / github.com/mudler/LocalAI / setUp

Method setUp

backend/python/mlx-distributed/test.py:20–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18
19class TestBackendServicer(unittest.TestCase):
20 def setUp(self):
21 self.service = subprocess.Popen(
22 ["python", "backend.py", "--addr", "localhost:50051"]
23 )
24 time.sleep(10)
25
26 def tearDown(self) -> None:
27 self.service.terminate()

Callers 4

test_server_startupMethod · 0.95
test_load_modelMethod · 0.95
test_textMethod · 0.95
test_sampling_paramsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected