# HG changeset patch # User Marcin Kuzminski # Date 2019-09-25 09:21:37 # Node ID 70acf9f6037724241a99a3071ce18720ee125ebc # Parent cc125265d0c471e9e4eddbd6155351f06cca39cf tests: fixed some tests after recent changes diff --git a/rhodecode/tests/lib/test_hooks_daemon.py b/rhodecode/tests/lib/test_hooks_daemon.py --- a/rhodecode/tests/lib/test_hooks_daemon.py +++ b/rhodecode/tests/lib/test_hooks_daemon.py @@ -39,7 +39,7 @@ class TestDummyHooksCallbackDaemon(objec 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(objec 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):