From 6e1d042f765e4c0c7a5a6247782dae0aee60d4d4 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Tue, 5 Jan 2021 23:14:43 -0800 Subject: [PATCH] mock out plugin discovery in test_plugins (#8576) --- certbot/tests/main_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/certbot/tests/main_test.py b/certbot/tests/main_test.py index 18336776e..5471248b4 100644 --- a/certbot/tests/main_test.py +++ b/certbot/tests/main_test.py @@ -813,8 +813,10 @@ class MainTest(test_util.ConfigTestCase): self._call_no_clientmock(['delete']) self.assertEqual(1, mock_cert_manager.call_count) + @mock.patch('certbot._internal.main.plugins_disco') + @mock.patch('certbot._internal.main.cli.HelpfulArgumentParser.determine_help_topics') @mock.patch('certbot._internal.log.post_arg_parse_setup') - def test_plugins(self, _): + def test_plugins(self, _, _det, mock_disco): flags = ['--init', '--prepare', '--authenticators', '--installers'] for args in itertools.chain( *(itertools.combinations(flags, r)