diff --git a/channels/routing.py b/channels/routing.py index 27fdeaba..75c8c42e 100644 --- a/channels/routing.py +++ b/channels/routing.py @@ -4,7 +4,7 @@ from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.urls.exceptions import Resolver404 -from django.urls.resolvers import RegexPattern, RoutePattern, URLResolver, URLPattern +from django.urls.resolvers import RegexPattern, RoutePattern, URLPattern, URLResolver """ All Routing instances inside this file are also valid ASGI applications - with diff --git a/tests/conftest.py b/tests/conftest.py index 3579749e..27f84603 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,6 @@ -import pytest import sys + +import pytest from django.conf import settings diff --git a/tests/test_routing.py b/tests/test_routing.py index e79444d3..422f1363 100644 --- a/tests/test_routing.py +++ b/tests/test_routing.py @@ -307,6 +307,7 @@ async def test_url_router_nesting_by_include(): Tests that nested URLRouters is constructed by include function. """ import sys + from django.urls import include from django.urls import reverse as django_reverse @@ -449,6 +450,7 @@ async def test_url_router_deep_nesting_by_include(): Tests that deep nested URLRouters is constructed by include function. """ import sys + from django.urls import include from django.urls import reverse as django_reverse