MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_class_docstring_extracted

Function test_class_docstring_extracted

tests/test_rationale.py:37–45  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

35
36
37def test_class_docstring_extracted(tmp_path):
38 path = _write_py(tmp_path, '''
39 class Cache:
40 """Chosen over Redis because we need zero external dependencies in the test env."""
41 pass
42 ''')
43 result = extract_python(path)
44 rationale = [n for n in result["nodes"] if n.get("file_type") == "rationale"]
45 assert any("Redis" in n["label"] for n in rationale)
46
47
48def test_rationale_comment_extracted(tmp_path):

Callers

nothing calls this directly

Calls 3

extract_pythonFunction · 0.90
_write_pyFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected