From b7cbabd78a67cef06b9d4df9924cfc47d98d86e8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:13:40 +0000 Subject: [PATCH] Bump pytest from 7.4.4 to 8.1.1 (#8223) Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.4 to 8.1.1.
Release notes

Sourced from pytest's releases.

8.1.1

pytest 8.1.1 (2024-03-08)

::: {.note} ::: {.title} Note :::

This release is not a usual bug fix release -- it contains features and improvements, being a follow up to 8.1.0, which has been yanked from PyPI. :::

Features

Improvements

... (truncated)

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pytest&package-manager=pip&previous-version=7.4.4&new-version=8.1.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days. --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: J. Nick Koston Co-authored-by: Sam Bull --- requirements/constraints.txt | 4 ++-- requirements/dev.txt | 4 ++-- requirements/lint.txt | 4 ++-- requirements/test.txt | 4 ++-- tests/test_pytest_plugin.py | 12 ++++++------ 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 23b1ce98dfe..7102cc9f3ac 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -136,7 +136,7 @@ pip-tools==7.4.1 # via -r requirements/dev.in platformdirs==2.4.0 # via virtualenv -pluggy==1.0.0 +pluggy==1.4.0 # via pytest pre-commit==3.5.0 # via -r requirements/lint.in @@ -164,7 +164,7 @@ pyproject-hooks==1.0.0 # via # build # pip-tools -pytest==7.4.4 +pytest==8.1.1 # via # -r requirements/lint.in # -r requirements/test.in diff --git a/requirements/dev.txt b/requirements/dev.txt index 702b2649304..fd91ccc895d 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -131,7 +131,7 @@ pip-tools==7.4.1 # via -r requirements/dev.in platformdirs==3.10.0 # via virtualenv -pluggy==1.2.0 +pluggy==1.4.0 # via pytest pre-commit==3.5.0 # via -r requirements/lint.in @@ -155,7 +155,7 @@ pyproject-hooks==1.0.0 # via # build # pip-tools -pytest==7.4.4 +pytest==8.1.1 # via # -r requirements/lint.in # -r requirements/test.in diff --git a/requirements/lint.txt b/requirements/lint.txt index fcfac455b3e..c61afb3c20b 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -32,11 +32,11 @@ packaging==23.1 # via pytest platformdirs==3.10.0 # via virtualenv -pluggy==1.2.0 +pluggy==1.4.0 # via pytest pre-commit==3.5.0 # via -r requirements/lint.in -pytest==7.4.4 +pytest==8.1.1 # via -r requirements/lint.in pyyaml==6.0.1 # via pre-commit diff --git a/requirements/test.txt b/requirements/test.txt index f879b83440b..dde37c806bd 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -65,7 +65,7 @@ packaging==23.1 # via # gunicorn # pytest -pluggy==1.2.0 +pluggy==1.4.0 # via pytest proxy-py==2.4.4rc4 # via -r requirements/test.in @@ -77,7 +77,7 @@ pydantic==2.2.0 # via python-on-whales pydantic-core==2.6.0 # via pydantic -pytest==7.4.4 +pytest==8.1.1 # via # -r requirements/test.in # pytest-cov diff --git a/tests/test_pytest_plugin.py b/tests/test_pytest_plugin.py index b25a553b868..ad222545294 100644 --- a/tests/test_pytest_plugin.py +++ b/tests/test_pytest_plugin.py @@ -19,6 +19,8 @@ def test_aiohttp_plugin(testdir) -> None: from aiohttp import web +value = web.AppKey('value', str) + async def hello(request): return web.Response(body=b'Hello, world') @@ -75,10 +77,10 @@ async def test_noop() -> None: async def previous(request): if request.method == 'POST': with pytest.deprecated_call(): # FIXME: this isn't actually called - request.app['value'] = (await request.post())['value'] + request.app[value] = (await request.post())['value'] return web.Response(body=b'thanks for the data') else: - v = request.app.get('value', 'unknown') + v = request.app.get(value, 'unknown') return web.Response(body='value: {}'.format(v).encode()) @@ -98,7 +100,7 @@ async def test_set_value(cli) -> None: assert resp.status == 200 text = await resp.text() assert text == 'thanks for the data' - assert cli.server.app['value'] == 'foo' + assert cli.server.app[value] == 'foo' async def test_get_value(cli) -> None: @@ -107,7 +109,7 @@ async def test_get_value(cli) -> None: text = await resp.text() assert text == 'value: unknown' with pytest.warns(DeprecationWarning): - cli.server.app['value'] = 'bar' + cli.server.app[value] = 'bar' resp = await cli.get('/') assert resp.status == 200 text = await resp.text() @@ -119,7 +121,6 @@ def test_noncoro() -> None: async def test_failed_to_create_client(aiohttp_client) -> None: - def make_app(loop): raise RuntimeError() @@ -142,7 +143,6 @@ async def test_custom_port_test_server(aiohttp_server, aiohttp_unused_port): port = aiohttp_unused_port() server = await aiohttp_server(app, port=port) assert server.port == port - """ ) testdir.makeconftest(CONFTEST)