Initial commit

This commit is contained in:
Warezpeddler
2026-04-25 23:09:31 +01:00
commit 3325436017
92 changed files with 18397 additions and 0 deletions

20
tests/test_plan_extras.py Normal file
View File

@@ -0,0 +1,20 @@
from pathlib import Path
from applepy.checks.plan_extras import _count_apps
def test_count_apps_finds_dot_app(tmp_path: Path) -> None:
apps = tmp_path / "Applications"
apps.mkdir()
bundle = apps / "Test.app"
bundle.mkdir()
(bundle / "Contents").mkdir()
n, msg = _count_apps(apps)
assert n == 1
assert msg == "ok"
def test_count_apps_missing_dir(tmp_path: Path) -> None:
n, msg = _count_apps(tmp_path / "nope")
assert n == 0
assert "not a directory" in msg