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

Function test_resolve_single_md_file

tests/unit/test_input_handler.py:39–50  ·  view source on GitHub ↗

Resolving a single .md file wraps it in a temp dir.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

37
38
39def test_resolve_single_md_file(tmp_path: Path) -> None:
40 """Resolving a single .md file wraps it in a temp dir."""
41 f = tmp_path / "doc.md"
42 f.write_text("# Doc", encoding="utf-8")
43 handler = InputHandler()
44 try:
45 resolved, source_type = handler.resolve(str(f))
46 assert resolved.is_dir()
47 assert (resolved / "doc.md").exists()
48 assert source_type == "file"
49 finally:
50 handler.cleanup()
51
52
53def test_resolve_zip_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