17 lines
595 B
Python
17 lines
595 B
Python
"""Tests for vendor clone helpers (no network)."""
|
|
|
|
from pathlib import Path
|
|
|
|
from applepy.bootstrap_compliance import bootstrap_macos_security, macos_security_clone_path
|
|
|
|
|
|
def test_bootstrap_macos_security_skips_when_layout_present(tmp_path: Path) -> None:
|
|
dest = macos_security_clone_path(tmp_path)
|
|
dest.mkdir(parents=True)
|
|
(dest / "baselines").mkdir()
|
|
(dest / "scripts").mkdir()
|
|
(dest / "scripts" / "generate_guidance.py").write_text("# stub\n", encoding="utf-8")
|
|
code, msg = bootstrap_macos_security(tmp_path)
|
|
assert code == 0
|
|
assert "Already present" in msg
|