From fcc699161e7fc3ad2b15e281f07737613e6626c9 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Thu, 15 Oct 2020 15:09:52 +0300 Subject: [PATCH] Bump pytest to 6.1.1 --- requirements/ci-wheel.txt | 6 +++--- requirements/wheel.txt | 2 +- tests/test_pytest_plugin.py | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/test_pytest_plugin.py b/tests/test_pytest_plugin.py index 121b4970d..e19f95319 100644 --- a/tests/test_pytest_plugin.py +++ b/tests/test_pytest_plugin.py @@ -187,15 +187,15 @@ async def hello(request): return web.Response(body=b'Hello, world') -def create_app(loop): +def create_app(): app = web.Application() app.router.add_route('GET', '/', hello) return app @pytest.fixture -async def cli(aiohttp_client): - client = await aiohttp_client(create_app) +async def cli(aiohttp_client, loop): + client = await aiohttp_client(create_app()) return client @@ -210,7 +210,7 @@ async def bar(request): return request.function -async def test_hello(cli) -> None: +async def test_hello(cli, loop) -> None: resp = await cli.get('/') assert resp.status == 200 @@ -229,7 +229,7 @@ def test_bar(loop, bar) -> None: """) testdir.makeconftest(CONFTEST) result = testdir.runpytest('-p', 'no:sugar', '--aiohttp-loop=pyloop') - result.assert_outcomes(passed=3, error=1) + result.assert_outcomes(passed=3, errors=1) result.stdout.fnmatch_lines( "*Asynchronous fixtures must depend on the 'loop' fixture " "or be used in tests depending from it."