diff --git a/CHANGES/3994.misc b/CHANGES/3994.misc new file mode 100644 index 00000000000..ea5d695b1e0 --- /dev/null +++ b/CHANGES/3994.misc @@ -0,0 +1 @@ +correct the names of some fuctions in ``tests/test_client_functional.py`` diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py index cc9928292f3..cd372132e09 100644 --- a/tests/test_client_functional.py +++ b/tests/test_client_functional.py @@ -2075,11 +2075,11 @@ async def handler_redirect(request): async def test_raise_for_status(aiohttp_client) -> None: - async def handler_redirect(request): + async def handler(request): raise web.HTTPBadRequest() app = web.Application() - app.router.add_route('GET', '/', handler_redirect) + app.router.add_route('GET', '/', handler) client = await aiohttp_client(app, raise_for_status=True) with pytest.raises(aiohttp.ClientResponseError): @@ -2088,11 +2088,11 @@ async def handler_redirect(request): async def test_raise_for_status_per_request(aiohttp_client) -> None: - async def handler_redirect(request): + async def handler(request): raise web.HTTPBadRequest() app = web.Application() - app.router.add_route('GET', '/', handler_redirect) + app.router.add_route('GET', '/', handler) client = await aiohttp_client(app) with pytest.raises(aiohttp.ClientResponseError): @@ -2101,11 +2101,11 @@ async def handler_redirect(request): async def test_raise_for_status_disable_per_request(aiohttp_client) -> None: - async def handler_redirect(request): + async def handler(request): raise web.HTTPBadRequest() app = web.Application() - app.router.add_route('GET', '/', handler_redirect) + app.router.add_route('GET', '/', handler) client = await aiohttp_client(app, raise_for_status=True) resp = await client.get('/', raise_for_status=False)