phi/test/test_api.py

16 lines
450 B
Python
Raw Permalink Normal View History

# async def test_user_request_not_valid(test_client, api_app):
# client = await test_client(api_app)
2017-12-27 11:02:38 +01:00
# resp = await client.get('/user')
# assert resp.status == 422
# resp = None
2017-12-27 11:02:38 +01:00
# resp = await client.get('/user/')
# assert resp.status == 422
2017-12-27 11:02:38 +01:00
# async def test_user_not_found(test_client, api_app):
# client = await test_client(api_app)
# resp = await client.get('/user/nonexistent')
# assert resp.status == 404