fix: tests
This commit is contained in:
@@ -3,6 +3,7 @@ authors = ["andrejus <hi@andrejus.uk>"]
|
|||||||
description = "Verifies dotfiles install"
|
description = "Verifies dotfiles install"
|
||||||
name = "dotfiles-test"
|
name = "dotfiles-test"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
|
package-mode = false
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.9"
|
python = "^3.9"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Verifies dotfiles installed binaries correctly
|
# Verifies dotfiles installed binaries correctly
|
||||||
#
|
#
|
||||||
from distutils.spawn import find_executable
|
from shutil import which
|
||||||
from typing import List, Text
|
from typing import List, Text
|
||||||
from subprocess import run
|
from subprocess import run
|
||||||
import pytest
|
import pytest
|
||||||
@@ -16,7 +16,7 @@ def in_path(binary: Text) -> bool:
|
|||||||
"""
|
"""
|
||||||
Check whether `binary` is in PATH
|
Check whether `binary` is in PATH
|
||||||
"""
|
"""
|
||||||
return find_executable(binary) is not None
|
return which(binary) is not None
|
||||||
|
|
||||||
|
|
||||||
def in_shell_path(shell: Text, binary: Text) -> bool:
|
def in_shell_path(shell: Text, binary: Text) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user