You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
385 B
14 lines
385 B
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
|
|
|