From a0129f7818a0c6922b3db9fb29d19b8ee2097b92 Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Thu, 12 Nov 2015 15:02:30 +0200 Subject: [PATCH] Fix test broken by #1454 if nginx installation not present in system --- letsencrypt/tests/cli_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/letsencrypt/tests/cli_test.py b/letsencrypt/tests/cli_test.py index 31f528cbf..baa2a6e78 100644 --- a/letsencrypt/tests/cli_test.py +++ b/letsencrypt/tests/cli_test.py @@ -121,7 +121,9 @@ class CLITest(unittest.TestCase): '--key-path', 'key', '--chain-path', 'chain']) self.assertEqual(mock_display_ops.pick_installer.call_count, 1) - def test_configurator_selection(self): + @mock.patch('letsencrypt.le_util.exe_exists') + def test_configurator_selection(self, mock_exe_exists): + mock_exe_exists.return_value = True real_plugins = disco.PluginsRegistry.find_all() args = ['--agree-dev-preview', '--apache', '--authenticator', 'standalone']