MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / test_cli_scan_local_directory

Function test_cli_scan_local_directory

tests/unit/test_cli.py:39–44  ·  view source on GitHub ↗

scan with local directory runs graph and prints report.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

37
38
39def test_cli_scan_local_directory(tmp_path: Path) -> None:
40 """scan with local directory runs graph and prints report."""
41 (tmp_path / "SKILL.md").write_text("---\nname: scan-test\n---\n# Safe", encoding="utf-8")
42 result = runner.invoke(app, ["scan", str(tmp_path), "--format", "json", "--no-llm"])
43 assert result.exit_code == 0
44 assert "scan-test" in result.output or "skill" in result.output
45
46
47def test_cli_scan_output_to_file(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 1

invokeMethod · 0.45

Tested by

no test coverage detected