diff --git a/daphne/cli.py b/daphne/cli.py index 715ef14..adea81a 100755 --- a/daphne/cli.py +++ b/daphne/cli.py @@ -7,7 +7,6 @@ from .access import AccessLogGenerator from .endpoints import build_endpoint_description_strings from .server import Server from .utils import import_by_path -from argparse import ArgumentError, Namespace logger = logging.getLogger(__name__) diff --git a/tests/test_cli.py b/tests/test_cli.py index 2507f69..82f062d 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -192,14 +192,7 @@ class TestCLIInterface(TestCase): """ Tests entirely custom endpoints """ - self.assertCLI( - ["-e", "imap:"], - { - "endpoints": [ - "imap:", - ], - }, - ) + self.assertCLI(["-e", "imap:"], {"endpoints": ["imap:"]}) def test_default_proxyheaders(self): """