MCPcopy Create free account
hub / github.com/LLMQuant/quant-mind / test_find_path_leaf

Method test_find_path_leaf

tests/knowledge/test_tree.py:135–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133 self.assertEqual([n.title for n in path], ["Root"])
134
135 def test_find_path_leaf(self):
136 tree = _make_tree()
137 # Find a1 from the tree's flat node map.
138 a1 = next(n for n in tree.nodes.values() if n.title == "A1")
139 path = tree.find_path(a1.node_id)
140 self.assertEqual([n.title for n in path], ["Root", "A", "A1"])
141
142 def test_find_path_unknown(self):
143 tree = _make_tree()

Callers

nothing calls this directly

Calls 2

_make_treeFunction · 0.85
find_pathMethod · 0.80

Tested by

no test coverage detected