Files
hate_crack/tests/test_dependencies.py
Justin Bollinger fa6e44cafb chore: replace transmission-cli with transmission-daemon in CI/install
Delete wordlists/kill_transmission.sh (replaced by Python extraction).
Update Makefile, Dockerfile.test, lima config, README, TESTING.md, and
test_dependencies.py to reference transmission-daemon/transmission-remote
instead of transmission-cli.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 00:46:51 -04:00

30 lines
740 B
Python

import os
import shutil
import warnings
import pytest
def _require_executable(name):
if shutil.which(name) is None:
warnings.warn(f"Missing required dependency: {name}", RuntimeWarning)
if os.environ.get("HATE_CRACK_REQUIRE_DEPS", "").lower() in (
"1",
"true",
"yes",
):
pytest.fail(f"Required dependency not installed: {name}")
pytest.skip(f"Missing required dependency: {name}")
def test_dependency_7z_installed():
_require_executable("7z")
def test_dependency_transmission_daemon_installed():
_require_executable("transmission-daemon")
def test_dependency_transmission_remote_installed():
_require_executable("transmission-remote")