File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ sanic==0.7.0
9
9
aiohttp==3.3.2
10
10
tornado==4.5.3
11
11
async_generator==1.9.0
12
- quart==0.6.3 ;python_version>="3.6"
12
+ quart==0.6.4 ;python_version>="3.6"
13
13
14
14
# tests
15
15
coverage==4.5.1
16
16
flake8==3.5.0
17
17
tox==3.1.2
18
18
pytest==3.6.4
19
19
pytest-runner==4.2
20
- pytest-asyncio==0.8 .0
20
+ pytest-asyncio==0.9 .0
21
21
pytest-tornado==0.5.0
22
22
pytest-mock==1.10.0
23
23
pytest-cov==2.5.1
Original file line number Diff line number Diff line change @@ -133,15 +133,17 @@ async def test_index_returns_200_dsn(app_dsn):
133
133
async def _test (app ):
134
134
test_client = app .test_client ()
135
135
for method in '01234' :
136
- response = await test_client .get ('/users/1?method=' + method )
136
+ response = await test_client .get (
137
+ '/users/1' , query_string = {'method' : method })
137
138
assert response .status_code == 404
138
139
139
140
response = await test_client .post ('/users' , form = dict (name = 'fantix' ))
140
141
assert response .status_code == 200
141
142
assert await response .get_json () == dict (id = 1 , nickname = 'fantix' )
142
143
143
144
for method in '01234' :
144
- response = await test_client .get ('/users/1?method=' + method )
145
+ response = await test_client .get (
146
+ '/users/1' , query_string = {'method' : method })
145
147
assert response .status_code == 200
146
148
assert await response .get_json () == dict (id = 1 , nickname = 'fantix' )
147
149
You can’t perform that action at this time.
0 commit comments