Files
applepy/tests/test_common_paths_extras.py
Warezpeddler 3325436017 Initial commit
2026-04-25 23:09:31 +01:00

13 lines
465 B
Python

from pathlib import Path
from applepy.checks.common_paths import check_cron_periodic_surface
from applepy.context import RunContext
def test_cron_periodic_returns_finding(tmp_path: Path) -> None:
ctx = RunContext(home=tmp_path, output_dir=tmp_path, phase="unprivileged")
out = check_cron_periodic_surface(ctx)
assert len(out) == 1
assert out[0].id == "soc-011"
assert "/etc/crontab" in out[0].evidence or "crontab" in out[0].evidence.lower()