Skip to content

Commit 8da52c2

Browse files
Bump the python-packages group with 4 updates (#2455)
* Bump the python-packages group with 4 updates Bumps the python-packages group with 4 updates: [coverage](https://github.com/nedbat/coveragepy), [ruff](https://github.com/astral-sh/ruff), [pytest](https://github.com/pytest-dev/pytest) and [mkdocs-material](https://github.com/squidfunk/mkdocs-material). Updates `coverage` from 7.4.0 to 7.4.1 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@7.4.0...7.4.1) Updates `ruff` from 0.1.13 to 0.1.15 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@v0.1.13...v0.1.15) Updates `pytest` from 7.4.4 to 8.0.0 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@7.4.4...8.0.0) Updates `mkdocs-material` from 9.5.5 to 9.5.6 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](squidfunk/mkdocs-material@9.5.5...9.5.6) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com> * add deprecation warning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
1 parent 4355e6b commit 8da52c2

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
-e .[full]
33

44
# Testing
5-
coverage==7.4.0
5+
coverage==7.4.1
66
importlib-metadata==7.0.1
77
mypy==1.8.0
8-
ruff==0.1.13
8+
ruff==0.1.15
99
typing_extensions==4.9.0
1010
types-contextvars==2.4.7.3
1111
types-PyYAML==6.0.12.12
1212
types-dataclasses==0.6.6
13-
pytest==7.4.4
13+
pytest==8.0.0
1414
trio==0.24.0
1515

1616
# Documentation
1717
mkdocs==1.5.3
18-
mkdocs-material==9.5.5
18+
mkdocs-material==9.5.6
1919
mkautodoc==0.2.0
2020

2121
# Packaging

tests/test_routing.py

+20-17
Original file line numberDiff line numberDiff line change
@@ -684,27 +684,30 @@ def run_shutdown(): # pragma: no cover
684684
nonlocal shutdown_called
685685
shutdown_called = True
686686

687-
with pytest.warns(
688-
UserWarning,
689-
match=(
690-
"The `lifespan` parameter cannot be used with `on_startup` or `on_shutdown`." # noqa: E501
691-
),
687+
with pytest.deprecated_call(
688+
match="The on_startup and on_shutdown parameters are deprecated"
692689
):
693-
app = Router(
694-
on_startup=[run_startup], on_shutdown=[run_shutdown], lifespan=lifespan
695-
)
690+
with pytest.warns(
691+
UserWarning,
692+
match=(
693+
"The `lifespan` parameter cannot be used with `on_startup` or `on_shutdown`." # noqa: E501
694+
),
695+
):
696+
app = Router(
697+
on_startup=[run_startup], on_shutdown=[run_shutdown], lifespan=lifespan
698+
)
696699

697-
assert not lifespan_called
698-
assert not startup_called
699-
assert not shutdown_called
700+
assert not lifespan_called
701+
assert not startup_called
702+
assert not shutdown_called
700703

701-
# Triggers the lifespan events
702-
with test_client_factory(app):
703-
...
704+
# Triggers the lifespan events
705+
with test_client_factory(app):
706+
...
704707

705-
assert lifespan_called
706-
assert not startup_called
707-
assert not shutdown_called
708+
assert lifespan_called
709+
assert not startup_called
710+
assert not shutdown_called
708711

709712

710713
def test_lifespan_sync(test_client_factory):

0 commit comments

Comments
 (0)