Skip to content

Commit

Permalink
chore: type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
msto committed Sep 18, 2024
1 parent 5078097 commit 34faeab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/util/test_executable_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ def test_validate_executable_path(executable: str | Path) -> None:
1. when the string "yes" is passed
2. when the absolute path to the `yes` executable is passed, either as a string or a Path
"""
expected_path = Path("/usr/bin/yes")
expected_path: Path = Path("/usr/bin/yes")

with mock.patch.dict(os.environ):
# Clear the PATH, in case the user has a local version of `yes` elsewhere on their PATH
os.environ.pop("PATH")

validated_path = ExecutableRunner.validate_executable_path(executable=executable)
validated_path: Path = ExecutableRunner.validate_executable_path(executable=executable)
assert validated_path == expected_path


Expand Down

0 comments on commit 34faeab

Please sign in to comment.