diff --git a/tests/test_ctl.py b/tests/test_ctl.py index 2263ec18..093882a7 100644 --- a/tests/test_ctl.py +++ b/tests/test_ctl.py @@ -23,7 +23,7 @@ from test_postgresql import MockConnect, psycopg2_connect CONFIG_FILE_PATH = './test-ctl.yaml' - +@patch('patroni.ctl.load_config', Mock(return_value={'dcs': {'scheme': 'etcd', 'hostname': 'localhost', 'port': 4001}})) class TestCtl(unittest.TestCase): @patch.object(Client, 'machines')