Skip to content

Commit c1563b3

Browse files
authored
Merge pull request #275 from fantix/pyup-update-quart-0.6.3-to-0.6.4
Update quart to 0.6.4
2 parents b09161c + 8a6b0d7 commit c1563b3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

requirements_dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ sanic==0.7.0
99
aiohttp==3.3.2
1010
tornado==4.5.3
1111
async_generator==1.9.0
12-
quart==0.6.3;python_version>="3.6"
12+
quart==0.6.4;python_version>="3.6"
1313

1414
# tests
1515
coverage==4.5.1
1616
flake8==3.5.0
17-
tox==3.1.2
1817
pytest==3.6.3
1918
pytest-runner==4.2
2019
pytest-asyncio==0.8.0
2120
pytest-tornado==0.5.0
2221
pytest-mock==1.10.0
2322
pytest-cov==2.5.1
23+
tox==3.1.2
2424

2525
# docs
2626
Sphinx==1.7.6

tests/test_quart.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,17 @@ async def test_index_returns_200_dsn(app_dsn):
133133
async def _test(app):
134134
test_client = app.test_client()
135135
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})
137138
assert response.status_code == 404
138139

139140
response = await test_client.post('/users', form=dict(name='fantix'))
140141
assert response.status_code == 200
141142
assert await response.get_json() == dict(id=1, nickname='fantix')
142143

143144
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})
145147
assert response.status_code == 200
146148
assert await response.get_json() == dict(id=1, nickname='fantix')
147149

0 commit comments

Comments
 (0)