We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4a63ff commit c236d3aCopy full SHA for c236d3a
docs/testing.rst
@@ -111,11 +111,11 @@ app test client::
111
body='value: {}'.format(request.app[value]).encode('utf-8'))
112
113
@pytest.fixture
114
- def cli(loop, aiohttp_client):
+ async def cli(aiohttp_client):
115
app = web.Application()
116
app.router.add_get('/', previous)
117
app.router.add_post('/', previous)
118
- return loop.run_until_complete(aiohttp_client(app))
+ return await aiohttp_client(app)
119
120
async def test_set_value(cli):
121
resp = await cli.post('/', data={'value': 'foo'})
0 commit comments