Skip to content

Commit

Permalink
Merge branch 'master' into pyup-update-pytest-3.6.3-to-3.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwjfy committed Jul 29, 2018
2 parents 9f2ede3 + 0faed75 commit 2ed1760
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions requirements_dev.txt
Expand Up @@ -9,15 +9,15 @@ sanic==0.7.0
aiohttp==3.3.2
tornado==4.5.3
async_generator==1.9.0
quart==0.6.3;python_version>="3.6"
quart==0.6.4;python_version>="3.6"

# tests
coverage==4.5.1
flake8==3.5.0
tox==3.1.2
pytest==3.6.4
pytest-runner==4.2
pytest-asyncio==0.8.0
pytest-asyncio==0.9.0
pytest-tornado==0.5.0
pytest-mock==1.10.0
pytest-cov==2.5.1
Expand Down
6 changes: 4 additions & 2 deletions tests/test_quart.py
Expand Up @@ -133,15 +133,17 @@ async def test_index_returns_200_dsn(app_dsn):
async def _test(app):
test_client = app.test_client()
for method in '01234':
response = await test_client.get('/users/1?method=' + method)
response = await test_client.get(
'/users/1', query_string={'method': method})
assert response.status_code == 404

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

for method in '01234':
response = await test_client.get('/users/1?method=' + method)
response = await test_client.get(
'/users/1', query_string={'method': method})
assert response.status_code == 200
assert await response.get_json() == dict(id=1, nickname='fantix')

Expand Down

0 comments on commit 2ed1760

Please sign in to comment.