Initial commit
This commit is contained in:
16
tests/test_bootstrap_compliance.py
Normal file
16
tests/test_bootstrap_compliance.py
Normal file
@@ -0,0 +1,16 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user