From edd8770c67f7e2b0938942848f344d3abecc47e8 Mon Sep 17 00:00:00 2001 From: Jakob Bowyer Date: Fri, 31 Mar 2017 08:53:46 +0100 Subject: [PATCH] Restored tests to upstream/master --- tests/test_request_data.py | 2 +- tests/test_request_timeout.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) 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')