mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 16:19:11 +02:00
Fixing tests
This commit is contained in:
@@ -552,6 +552,9 @@ def prepare_and_parse_args(plugins, args, detect_defaults=False):
|
||||
:rtype: argparse.Namespace
|
||||
|
||||
"""
|
||||
|
||||
# pylint: disable=too-many-statements
|
||||
|
||||
helpful = HelpfulArgumentParser(args, plugins, detect_defaults)
|
||||
|
||||
# --help is automatically provided by argparse
|
||||
|
||||
@@ -49,7 +49,7 @@ class CLITest(unittest.TestCase): # pylint: disable=too-many-public-methods
|
||||
self.logs_dir = os.path.join(self.tmp_dir, 'logs')
|
||||
self.standard_args = ['--config-dir', self.config_dir,
|
||||
'--work-dir', self.work_dir,
|
||||
'--logs-dir', self.logs_dir]
|
||||
'--logs-dir', self.logs_dir, '--text']
|
||||
|
||||
def tearDown(self):
|
||||
shutil.rmtree(self.tmp_dir)
|
||||
@@ -152,6 +152,8 @@ class CLITest(unittest.TestCase): # pylint: disable=too-many-public-methods
|
||||
@mock.patch('certbot.main.renew')
|
||||
def test_gui(self, renew):
|
||||
args = ['renew', '--dialog']
|
||||
# --text conflicts with --dialog
|
||||
self.standard_args.remove('--text')
|
||||
self._call(args)
|
||||
self.assertFalse(renew.call_args[0][0].noninteractive_mode)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user