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

Method test_truncates_long_content

tests/test_compiler.py:597–607  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

595 assert "Transformer is a neural network" in result
596
597 def test_truncates_long_content(self, tmp_path):
598 wiki = tmp_path / "wiki"
599 concepts = wiki / "concepts"
600 concepts.mkdir(parents=True)
601 long_body = "A" * 300
602 (concepts / "longconcept.md").write_text(long_body, encoding="utf-8")
603 result = _read_concept_briefs(wiki)
604 # The brief part should be truncated at 150 chars
605 brief = result.split("- longconcept: ", 1)[1]
606 assert len(brief) == 150
607 assert brief == "A" * 150
608
609 def test_sorted_alphabetically(self, tmp_path):
610 wiki = tmp_path / "wiki"

Callers

nothing calls this directly

Calls 1

_read_concept_briefsFunction · 0.90

Tested by

no test coverage detected