diff --git a/daphne/testing.py b/daphne/testing.py index 7cc1182..c302045 100644 --- a/daphne/testing.py +++ b/daphne/testing.py @@ -127,8 +127,8 @@ class DaphneProcess(multiprocessing.Process): from twisted.internet import reactor - from .server import Server from .endpoints import build_endpoint_description_strings + from .server import Server try: # Create the server class @@ -266,8 +266,8 @@ class TestApplication: def _reinstall_reactor(): - import sys import asyncio + import sys from twisted.internet import asyncioreactor diff --git a/tests/test_http_request.py b/tests/test_http_request.py index 0bd2d82..aae7f99 100644 --- a/tests/test_http_request.py +++ b/tests/test_http_request.py @@ -3,10 +3,9 @@ import collections from urllib import parse -from hypothesis import assume, given, settings - import http_strategies from http_base import DaphneTestCase +from hypothesis import assume, given, settings class TestHTTPRequest(DaphneTestCase): diff --git a/tests/test_http_response.py b/tests/test_http_response.py index 08c34bb..9dd728d 100644 --- a/tests/test_http_response.py +++ b/tests/test_http_response.py @@ -1,9 +1,8 @@ # coding: utf8 -from hypothesis import given, settings - import http_strategies from http_base import DaphneTestCase +from hypothesis import given, settings class TestHTTPResponse(DaphneTestCase):