Fixed pylint errors

This commit is contained in:
SandstormVR 2019-02-28 22:40:04 +00:00
parent bafe734922
commit edb557b778
2 changed files with 3 additions and 5 deletions

View file

@ -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

View file

@ -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):