MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_stem_is_sanitized

Method test_stem_is_sanitized

tests/test_converter.py:252–257  ·  view source on GitHub ↗
(self, kb_dir)

Source from the content-addressed store, hash-verified

250 assert reg.get("h_old")["path"] == _registry_path(src, kb_dir)
251
252 def test_stem_is_sanitized(self, kb_dir):
253 from openkb.converter import resolve_doc_name
254
255 src = kb_dir / "raw" / "my report (final).md"
256 src.write_text("x", encoding="utf-8")
257 assert resolve_doc_name(src, kb_dir, self._registry(kb_dir)) == "my-report-final"
258
259 def test_same_stem_different_extension_collides(self, kb_dir):
260 # report.pdf vs an existing "report" (from report.md) — extension

Callers

nothing calls this directly

Calls 2

_registryMethod · 0.95
resolve_doc_nameFunction · 0.90

Tested by

no test coverage detected