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

Function test_module_docstring_extracted

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

Source from the content-addressed store, hash-verified

13
14
15def test_module_docstring_extracted(tmp_path):
16 path = _write_py(tmp_path, '''
17 """This module handles authentication because legacy sessions were insecure."""
18 def login(): pass
19 ''')
20 result = extract_python(path)
21 rationale = [n for n in result["nodes"] if n.get("file_type") == "rationale"]
22 assert len(rationale) >= 1
23 assert any("authentication" in n["label"] for n in rationale)
24
25
26def test_function_docstring_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