From d28987d2a74cf928385b983ab4275811a3cac498 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 30 Aug 2026 20:22:18 +0200 Subject: [PATCH] Update pipdeptree to 4.2.2 (#180346) --- requirements_test.txt | 2 +- tests/util/test_package.py | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/requirements_test.txt b/requirements_test.txt index 2ba54f27e62a..3d59ef0d753a 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -22,7 +22,7 @@ pydantic==2.13.4 PyGithub==2.9.1 pylint==4.0.7 pylint-per-file-ignores==3.2.1 -pipdeptree==2.26.1 +pipdeptree==4.2.2 pytest-asyncio==1.4.0 pytest-aiohttp==1.1.1 pytest-cov==7.1.0 diff --git a/tests/util/test_package.py b/tests/util/test_package.py index fbeaa031554a..0b3e1de70fcf 100644 --- a/tests/util/test_package.py +++ b/tests/util/test_package.py @@ -552,13 +552,12 @@ def test_check_package_global(caplog: pytest.LogCaptureFixture) -> None: def test_check_package_fragment(caplog: pytest.LogCaptureFixture) -> None: """Test for an installed package with a fragment.""" + url = "git+https://github.com/home-assistant/core" + assert not package.is_installed(TEST_ZIP_REQ) - assert package.is_installed("git+https://github.com/pypa/pip#pip>=1") - assert not package.is_installed("git+https://github.com/pypa/pip#-1 invalid") - assert ( - "Invalid requirement 'git+https://github.com/pypa/pip#-1 invalid'" - in caplog.text - ) + assert package.is_installed(f"{url}#homeassistant>=1") + assert not package.is_installed(f"{url}#-1 invalid") + assert f"Invalid requirement '{url}#-1 invalid'" in caplog.text def test_get_is_installed() -> None: