Skip to content

Commit

Permalink
chore: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 29, 2023
1 parent 0472271 commit 4cff538
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/test_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
)

0 comments on commit 4cff538

Please sign in to comment.