Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TGWolf committed May 31, 2024
1 parent fa6414f commit c8d2c90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_prereqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def mock_which(cmd, path=None) -> Optional[str]: # pylint: disable=unused-argum
check_prerequisite(prerequisites)

assert len(exc_info.value.errors) == 1 # nosec: B101
assert exc_info.value.errors[0] == "git is not installed - Aborting" # nosec: B101
assert exc_info.value.errors[0] == "git is not installed" # nosec: B101


def test_all_prerequisites_missing(mocker) -> None:
Expand Down Expand Up @@ -159,8 +159,8 @@ def test_all_prerequisites_missing(mocker) -> None:
check_prerequisite(prerequisites)

assert len(exc_info.value.errors) == 2 # nosec: B101
assert "python is not installed - Aborting" in exc_info.value.errors # nosec: B101
assert "git is not installed - Aborting" in exc_info.value.errors # nosec: B101
assert "python is not installed" in exc_info.value.errors # nosec: B101
assert "git is not installed" in exc_info.value.errors # nosec: B101


def test_empty_prerequisites_list() -> None:
Expand Down

0 comments on commit c8d2c90

Please sign in to comment.