mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Fixed test failing and mypy error. Appeared a new pylint error (seems to be in conflict with mypy)
mypy require zope.interface to be imported but when imported it is not used and pylint throws an error.
This commit is contained in:
parent
485348fd8b
commit
bafe734922
2 changed files with 7 additions and 6 deletions
|
|
@ -8,6 +8,7 @@ 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
|
||||
from acme.magic_typing import Any, Dict, Optional
|
||||
|
|
|
|||
|
|
@ -99,16 +99,16 @@ 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",
|
||||
# description="description of auth")
|
||||
#self.assertIs(new_group._topic, "auth")
|
||||
new_group = 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",
|
||||
# description="description of run")
|
||||
#self.assertIs(new_group._topic, "run")
|
||||
new_group = 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