From e4506baf5fd6d3bade99cf7c21672176a7c00fcc Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Wed, 25 Sep 2019 11:21:37 +0200 Subject: [PATCH] tests: fixed some tests after recent changes --- rhodecode/tests/lib/test_hooks_daemon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rhodecode/tests/lib/test_hooks_daemon.py b/rhodecode/tests/lib/test_hooks_daemon.py index db565219..300e86f0 100644 --- a/rhodecode/tests/lib/test_hooks_daemon.py +++ b/rhodecode/tests/lib/test_hooks_daemon.py @@ -39,7 +39,7 @@ class TestDummyHooksCallbackDaemon(object): with mock.patch.object(hooks_daemon.log, 'debug') as log_mock: with daemon as return_value: log_mock.assert_called_once_with( - 'Running dummy hooks callback daemon') + 'Running `%s` callback daemon', 'DummyHooksCallbackDaemon') assert return_value == daemon def test_logs_exiting_the_hook(self): @@ -47,7 +47,8 @@ class TestDummyHooksCallbackDaemon(object): with mock.patch.object(hooks_daemon.log, 'debug') as log_mock: with daemon: pass - log_mock.assert_called_with('Exiting dummy hooks callback daemon') + log_mock.assert_called_with( + 'Exiting `%s` callback daemon', 'DummyHooksCallbackDaemon') class TestHooks(object):