mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Fixed pylint errors
This commit is contained in:
parent
bafe734922
commit
edb557b778
2 changed files with 3 additions and 5 deletions
|
|
@ -8,9 +8,9 @@ from certbot import constants
|
|||
from certbot import interfaces
|
||||
from certbot import util
|
||||
from certbot import errors
|
||||
import zope.interface
|
||||
|
||||
# pylint: disable=unused-import, no-name-in-module
|
||||
import zope.interface.interface
|
||||
from acme.magic_typing import Any, Dict, Optional
|
||||
# pylint: enable=unused-import, no-name-in-module
|
||||
|
||||
|
|
|
|||
|
|
@ -99,16 +99,14 @@ class TestAddGroup(unittest.TestCase):
|
|||
# The user request help on run. A topic that given somewhere in the
|
||||
# args won't be added to the groups in the parser.
|
||||
arg_parser = HelpfulArgumentParser(['--help', 'run'], {})
|
||||
new_group = arg_parser.add_group("auth",
|
||||
arg_parser.add_group("auth",
|
||||
description="description of auth")
|
||||
self.assertIs(new_group._topic, "auth")
|
||||
self.assertEqual(arg_parser.groups, {})
|
||||
|
||||
def test_add_group_topic_requested_help(self):
|
||||
arg_parser = HelpfulArgumentParser(['--help', 'run'], {})
|
||||
new_group = arg_parser.add_group("run",
|
||||
arg_parser.add_group("run",
|
||||
description="description of run")
|
||||
self.assertIs(new_group._topic, "run")
|
||||
self.assertTrue(arg_parser.groups["run"])
|
||||
arg_parser.add_group("certonly", description="description of certonly")
|
||||
with self.assertRaises(KeyError):
|
||||
|
|
|
|||
Loading…
Reference in a new issue