mirror of
https://github.com/trustedsec/hate_crack.git
synced 2026-04-28 12:03:11 -07:00
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>
30 lines
740 B
Python
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")
|