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
