diff --git a/tests/util/test_executable_runner.py b/tests/util/test_executable_runner.py index ea9cf77..18c19cb 100644 --- a/tests/util/test_executable_runner.py +++ b/tests/util/test_executable_runner.py @@ -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