mirror of
https://github.com/trustedsec/hate_crack.git
synced 2026-06-29 17:54:28 -07:00
19 lines
421 B
Python
19 lines
421 B
Python
import shutil
|
|
import warnings
|
|
|
|
import pytest
|
|
|
|
|
|
def _require_executable(name):
|
|
if shutil.which(name) is None:
|
|
warnings.warn(f"Missing required dependency: {name}", RuntimeWarning)
|
|
pytest.fail(f"Required dependency not installed: {name}")
|
|
|
|
|
|
def test_dependency_7z_installed():
|
|
_require_executable("7z")
|
|
|
|
|
|
def test_dependency_transmission_cli_installed():
|
|
_require_executable("transmission-cli")
|