MCPcopy
hub / github.com/geldata/gel / setUpModule

Function setUpModule

tests/test_backend_ha.py:463–480  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

461
462
463def setUpModule():
464 debug = False
465
466 try:
467 consul_path = os.environ.get("EDGEDB_TEST_CONSUL_PATH", "consul")
468 subprocess.check_call(
469 [consul_path, "--version"],
470 stdout=None if debug else subprocess.DEVNULL,
471 stderr=None if debug else subprocess.DEVNULL,
472 )
473 stolon_path = os.environ.get("EDGEDB_TEST_STOLON_CTL", "stolonctl")
474 subprocess.check_call(
475 [stolon_path, "--version"],
476 stdout=None if debug else subprocess.DEVNULL,
477 stderr=None if debug else subprocess.DEVNULL,
478 )
479 except Exception:
480 raise unittest.SkipTest("Consul not installed")
481
482
483@unittest.skipIf(

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…