From d1dff7832640fbf5e67355a0c5c2155b36604eb7 Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Tue, 12 Sep 2023 09:11:57 +0200 Subject: [PATCH] Rename methods in unit tests to match names of methods we are testing --- tests/test_ha.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_ha.py b/tests/test_ha.py index 89ed41fa..cadb6eaf 100644 --- a/tests/test_ha.py +++ b/tests/test_ha.py @@ -1290,7 +1290,7 @@ class TestHa(PostgresInit): self.ha.demote('immediate') follow.assert_called_once_with(None) - def test_process__multisync_replication(self): + def test__process_multisync_replication(self): self.ha.has_lock = true mock_set_sync = self.p.sync_handler.set_synchronous_standby_names = Mock() self.p.name = 'leader' @@ -1685,7 +1685,7 @@ class TestHa(PostgresInit): self.assertEqual(mock_set_sync.call_count, 1) self.assertEqual(mock_set_sync.call_args_list[0][0], ('ANY 3 (foo,other,postgresql0)',)) - def test_process_quorum_replication(self): + def test__process_quorum_replication(self): self.p._major_version = 150000 self.ha.has_lock = true mock_set_sync = self.p.config.set_synchronous_standby_names = Mock()