mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 16:19:13 +02:00
lint
This commit is contained in:
@@ -46,8 +46,8 @@ class HookTest(unittest.TestCase):
|
||||
mockwhich.return_value = None
|
||||
self.assertEqual(hooks._prog("funky"), None)
|
||||
|
||||
@mock.patch('letsencrypt.hooks.logger')
|
||||
def _test_a_hook(self, config, hook_function, calls_expected, mock_logger):
|
||||
def _test_a_hook(self, config, hook_function, calls_expected):
|
||||
with mock.patch('letsencrypt.hooks.logger') as mock_logger:
|
||||
mock_logger.warning = mock.MagicMock()
|
||||
with mock.patch('letsencrypt.hooks._run_hook') as mock_run_hook:
|
||||
hook_function(config)
|
||||
|
||||
Reference in New Issue
Block a user