feat(mindmodel): add CLI wrapper and tests

This commit is contained in:
2026-03-24 21:29:10 +01:00
parent a74e6006f5
commit f77875ed54
2 changed files with 46 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import os
def test_cli_with_nonexistent_manifest():
"""Calling cli.main with a non-existent manifest should return non-zero."""
from scripts.mindmodel import cli
# Provide a path that is extremely unlikely to exist
fake_manifest = "/this/path/does/not/exist/manifest.json"
code = cli.main([fake_manifest])
assert isinstance(code, int)
assert code != 0