From 524cfafbbe07a1fe6a471245e5255edf803be7b5 Mon Sep 17 00:00:00 2001 From: Oleksandr Shulgin Date: Tue, 23 Feb 2016 17:18:16 +0100 Subject: [PATCH] Don't mock get_dcs() for ZK, we are trying to test it --- tests/test_ctl.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_ctl.py b/tests/test_ctl.py index 55612a94..f8f2783a 100644 --- a/tests/test_ctl.py +++ b/tests/test_ctl.py @@ -390,10 +390,8 @@ leader''') @patch('patroni.ctl.load_config', Mock(return_value={'dcs': {'scheme': 'zookeeper', 'hostname': 'localhost', 'port': 2181}})) def test_zookeeper(self): - with patch('patroni.ctl.get_dcs', Mock(return_value=self.zk)): - self.runner.invoke(ctl, ['list']) + self.runner.invoke(ctl, ['list']) @patch('patroni.ctl.load_config', Mock(return_value={'dcs': {'scheme': 'exhibitor', 'hostname': 'localhost', 'port': 8181}})) def test_exhibitor(self): - with patch('patroni.ctl.get_dcs', Mock(return_value=self.zk)): - self.runner.invoke(ctl, ['list']) + self.runner.invoke(ctl, ['list'])