mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 00:22:28 +02:00
@@ -393,6 +393,8 @@ class HelpfulArgumentParser(object):
|
|||||||
("Conflicting values for displayer."
|
("Conflicting values for displayer."
|
||||||
" {0} conflicts with dialog_mode").format(arg)
|
" {0} conflicts with dialog_mode").format(arg)
|
||||||
)
|
)
|
||||||
|
elif parsed_args.verbose_count > flag_default("verbose_count"):
|
||||||
|
parsed_args.text_mode = True
|
||||||
|
|
||||||
if parsed_args.validate_hooks:
|
if parsed_args.validate_hooks:
|
||||||
hooks.validate_hooks(parsed_args)
|
hooks.validate_hooks(parsed_args)
|
||||||
|
|||||||
@@ -1020,6 +1020,12 @@ class CLITest(unittest.TestCase): # pylint: disable=too-many-public-methods
|
|||||||
args = ['renew', '--dialog', '--text']
|
args = ['renew', '--dialog', '--text']
|
||||||
self.assertRaises(errors.Error, self._call, args)
|
self.assertRaises(errors.Error, self._call, args)
|
||||||
|
|
||||||
|
def test_text_mode_when_verbose(self):
|
||||||
|
parse = self._get_argument_parser()
|
||||||
|
short_args = ['-v']
|
||||||
|
namespace = parse(short_args)
|
||||||
|
self.assertTrue(namespace.text_mode)
|
||||||
|
|
||||||
|
|
||||||
class DetermineAccountTest(unittest.TestCase):
|
class DetermineAccountTest(unittest.TestCase):
|
||||||
"""Tests for certbot.cli._determine_account."""
|
"""Tests for certbot.cli._determine_account."""
|
||||||
|
|||||||
Reference in New Issue
Block a user