Show More
@@ -284,12 +284,11 b' class TestInitializeGenerator:' | |||
|
284 | 284 | |
|
285 | 285 | |
|
286 | 286 | class TestPrepareHooksDaemon(object): |
|
287 |
def test_calls_imported_prepare_callback_daemon(self, |
|
|
288 | settings = pylonsapp.application.config | |
|
287 | def test_calls_imported_prepare_callback_daemon(self, app_settings): | |
|
289 | 288 | expected_extras = {'extra1': 'value1'} |
|
290 | 289 | daemon = DummyHooksCallbackDaemon() |
|
291 | 290 | |
|
292 | controller = StubVCSController(None, settings, None) | |
|
291 | controller = StubVCSController(None, app_settings, None) | |
|
293 | 292 | prepare_patcher = mock.patch.object( |
|
294 | 293 | simplevcs, 'prepare_callback_daemon', |
|
295 | 294 | return_value=(daemon, expected_extras)) |
@@ -298,8 +297,8 b' class TestPrepareHooksDaemon(object):' | |||
|
298 | 297 | expected_extras.copy()) |
|
299 | 298 | prepare_mock.assert_called_once_with( |
|
300 | 299 | expected_extras, |
|
301 | protocol=settings['vcs.hooks.protocol'], | |
|
302 | use_direct_calls=settings['vcs.hooks.direct_calls']) | |
|
300 | protocol=app_settings['vcs.hooks.protocol'], | |
|
301 | use_direct_calls=app_settings['vcs.hooks.direct_calls']) | |
|
303 | 302 | |
|
304 | 303 | assert callback_daemon == daemon |
|
305 | 304 | assert extras == extras |
General Comments 0
You need to be logged in to leave comments.
Login now