##// END OF EJS Templates
tests: fixed some tests after recent changes
marcink -
r3938:70acf9f6 default
parent child Browse files
Show More
@@ -39,7 +39,7 b' class TestDummyHooksCallbackDaemon(objec'
39 with mock.patch.object(hooks_daemon.log, 'debug') as log_mock:
39 with mock.patch.object(hooks_daemon.log, 'debug') as log_mock:
40 with daemon as return_value:
40 with daemon as return_value:
41 log_mock.assert_called_once_with(
41 log_mock.assert_called_once_with(
42 'Running dummy hooks callback daemon')
42 'Running `%s` callback daemon', 'DummyHooksCallbackDaemon')
43 assert return_value == daemon
43 assert return_value == daemon
44
44
45 def test_logs_exiting_the_hook(self):
45 def test_logs_exiting_the_hook(self):
@@ -47,7 +47,8 b' class TestDummyHooksCallbackDaemon(objec'
47 with mock.patch.object(hooks_daemon.log, 'debug') as log_mock:
47 with mock.patch.object(hooks_daemon.log, 'debug') as log_mock:
48 with daemon:
48 with daemon:
49 pass
49 pass
50 log_mock.assert_called_with('Exiting dummy hooks callback daemon')
50 log_mock.assert_called_with(
51 'Exiting `%s` callback daemon', 'DummyHooksCallbackDaemon')
51
52
52
53
53 class TestHooks(object):
54 class TestHooks(object):
General Comments 0
You need to be logged in to leave comments. Login now