diff --git a/tests/test_request_data.py b/tests/test_request_data.py index c2493ffe..c874f71d 100644 --- a/tests/test_request_data.py +++ b/tests/test_request_data.py @@ -2,7 +2,7 @@ import random from sanic import Sanic from sanic.response import json -from json import loads +from ujson import loads def test_storage(): diff --git a/tests/test_request_timeout.py b/tests/test_request_timeout.py index 40bc364c..404aec12 100644 --- a/tests/test_request_timeout.py +++ b/tests/test_request_timeout.py @@ -1,9 +1,8 @@ -import asyncio - from sanic import Sanic -from sanic.config import Config -from sanic.exceptions import RequestTimeout +import asyncio from sanic.response import text +from sanic.exceptions import RequestTimeout +from sanic.config import Config Config.REQUEST_TIMEOUT = 1 request_timeout_app = Sanic('test_request_timeout')