fix a typo
This commit is contained in:
parent
6d0b30953a
commit
d9002769cf
|
@ -2,7 +2,7 @@ import asyncio
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from sanic import Sanic
|
from sanic import Sanic
|
||||||
from sanic.response import text
|
from sanic.response import text, json
|
||||||
from sanic.router import RouteExists, RouteDoesNotExist
|
from sanic.router import RouteExists, RouteDoesNotExist
|
||||||
from sanic.constants import HTTP_METHODS
|
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')
|
request, response = app.test_client.get('/ads/1234')
|
||||||
assert response.status == 200
|
assert response.status == 200
|
||||||
assert response.json == {
|
assert response.json == {
|
||||||
'ad_id': '/ads/1234'
|
'ad_id': '1234'
|
||||||
}
|
}
|
||||||
|
|
||||||
request, response = app.test_client.post('/ads/post')
|
request, response = app.test_client.post('/ads/post')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user