From 4cff5382557cf35cfce8fd8a1b168b6eb2df735f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 29 Dec 2023 12:13:56 +0000 Subject: [PATCH] chore: auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- test/test_runtime.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/test_runtime.py b/test/test_runtime.py index 4a6583a4..1bd79f7e 100644 --- a/test/test_runtime.py +++ b/test/test_runtime.py @@ -862,7 +862,10 @@ def test_is_url(name: str, result: bool) -> None: """Checks functionality of is_url.""" assert is_url(name) == result -def test_prepare_environment_repair_broken_symlink(caplog: pytest.LogCaptureFixture) -> None: + +def test_prepare_environment_repair_broken_symlink( + caplog: pytest.LogCaptureFixture, +) -> None: """Ensure we can deal with broken symlinks in collections.""" caplog.set_level(logging.INFO) project_dir = Path(__file__).parent / "collections" / "acme.minimal" @@ -876,5 +879,6 @@ def test_prepare_environment_repair_broken_symlink(caplog: pytest.LogCaptureFixt goodies.symlink_to("/invalid/destination") runtime.prepare_environment(install_local=True) assert any( - msg.startswith("Collection is symlinked, but not pointing to") for msg in caplog.messages + msg.startswith("Collection is symlinked, but not pointing to") + for msg in caplog.messages )