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

Method test_preserves_path_separator

tests/test_lint.py:409–412  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

407 assert _normalize_target("concepts/foo--bar") == "concepts/foo-bar"
408
409 def test_preserves_path_separator(self):
410 assert _normalize_target("concepts/Foo") == "concepts/foo"
411 # Does not collapse the slash
412 assert "/" in _normalize_target("concepts/Foo")
413
414 def test_strips_trailing_hyphens_per_segment(self):
415 assert _normalize_target("concepts/-foo-") == "concepts/foo"

Callers

nothing calls this directly

Calls 1

_normalize_targetFunction · 0.90

Tested by

no test coverage detected