feat(mindmodel): add CLI wrapper and tests
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user