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

Method setUpClass

backend/python/liquid-audio/test.py:26–32  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

24class TestBackend(unittest.TestCase):
25 @classmethod
26 def setUpClass(cls):
27 addr = os.environ.get("LIQUID_AUDIO_TEST_ADDR", "localhost:50053")
28 cls.addr = addr
29 cls.server = subprocess.Popen(
30 [sys.executable, os.path.join(os.path.dirname(__file__), "backend.py"), "--addr", addr],
31 )
32 time.sleep(2) # Give the server a moment to bind
33
34 @classmethod
35 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected