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

Method setUp

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

Source from the content-addressed store, hash-verified

22 This class contains methods to test the startup and shutdown of the gRPC service.
23 """
24 def setUp(self):
25 self.service = subprocess.Popen(["python", "backend.py", "--addr", "localhost:50051"])
26 time.sleep(10)
27
28 def tearDown(self) -> None:
29 self.service.terminate()

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected