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

Function test_cleanup_idempotent

tests/unit/test_input_handler.py:91–97  ·  view source on GitHub ↗

cleanup() can be called after resolve and does not raise.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

89
90
91def test_cleanup_idempotent(tmp_path: Path) -> None:
92 """cleanup() can be called after resolve and does not raise."""
93 (tmp_path / "a.md").write_text("x", encoding="utf-8")
94 handler = InputHandler()
95 handler.resolve(str(tmp_path / "a.md"))
96 handler.cleanup()
97 handler.cleanup()
98
99
100def test_scp_url_is_git_url() -> None:

Callers

nothing calls this directly

Calls 3

resolveMethod · 0.95
cleanupMethod · 0.95
InputHandlerClass · 0.90

Tested by

no test coverage detected