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

Function test_resolve_directory

tests/unit/test_input_handler.py:26–36  ·  view source on GitHub ↗

Resolving a local directory returns path and source_type directory.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

24
25
26def test_resolve_directory(tmp_path: Path) -> None:
27 """Resolving a local directory returns path and source_type directory."""
28 (tmp_path / "SKILL.md").write_text("# Skill", encoding="utf-8")
29 handler = InputHandler()
30 try:
31 resolved, source_type = handler.resolve(str(tmp_path))
32 assert resolved.is_dir()
33 assert (resolved / "SKILL.md").exists()
34 assert source_type == "directory"
35 finally:
36 handler.cleanup()
37
38
39def test_resolve_single_md_file(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 3

resolveMethod · 0.95
cleanupMethod · 0.95
InputHandlerClass · 0.90

Tested by

no test coverage detected