2026-05-14 00:20:36 +08:00
|
|
|
"""Regression guard: utility and asset symbols importable from specify_cli."""
|
|
|
|
|
from specify_cli import (
|
2026-06-09 06:13:07 -05:00
|
|
|
check_tool, merge_json_files,
|
2026-05-14 00:20:36 +08:00
|
|
|
get_speckit_version,
|
|
|
|
|
CLAUDE_LOCAL_PATH, CLAUDE_NPM_LOCAL_PATH,
|
|
|
|
|
)
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
def test_utils_symbols_importable():
|
|
|
|
|
assert callable(check_tool)
|
|
|
|
|
assert callable(merge_json_files)
|
|
|
|
|
|
|
|
|
|
def test_get_speckit_version_returns_string():
|
|
|
|
|
version = get_speckit_version()
|
|
|
|
|
assert isinstance(version, str) and len(version) > 0
|
|
|
|
|
|
|
|
|
|
def test_claude_paths_are_paths():
|
|
|
|
|
assert isinstance(CLAUDE_LOCAL_PATH, Path)
|
|
|
|
|
assert isinstance(CLAUDE_NPM_LOCAL_PATH, Path)
|