From d9002769cf26be9e36ffb788e2f4e71f03e1ca47 Mon Sep 17 00:00:00 2001 From: Yun Xu Date: Mon, 15 Jan 2018 17:49:11 -0800 Subject: [PATCH] fix a typo --- tests/test_routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_routes.py b/tests/test_routes.py index 969128f8..5f3b3376 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -2,7 +2,7 @@ import asyncio import pytest from sanic import Sanic -from sanic.response import text +from sanic.response import text, json from sanic.router import RouteExists, RouteDoesNotExist from sanic.constants import HTTP_METHODS @@ -923,7 +923,7 @@ def test_uri_with_different_method_and_different_params(): request, response = app.test_client.get('/ads/1234') assert response.status == 200 assert response.json == { - 'ad_id': '/ads/1234' + 'ad_id': '1234' } request, response = app.test_client.post('/ads/post')