()
| 461 | |
| 462 | |
| 463 | def 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( |
nothing calls this directly
no test coverage detected
searching dependent graphs…