mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 02:44:21 +02:00
Adding test for text_mode when verbose is enabled
This commit is contained in:
@@ -1020,6 +1020,12 @@ class CLITest(unittest.TestCase): # pylint: disable=too-many-public-methods
|
||||
args = ['renew', '--dialog', '--text']
|
||||
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):
|
||||
"""Tests for certbot.cli._determine_account."""
|
||||
|
||||
Reference in New Issue
Block a user