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

Function test_short_docstring_ignored

tests/test_rationale.py:71–80  ·  view source on GitHub ↗

Trivial docstrings under 20 chars should not become rationale nodes.

(tmp_path)

Source from the content-addressed store, hash-verified

69
70
71def test_short_docstring_ignored(tmp_path):
72 """Trivial docstrings under 20 chars should not become rationale nodes."""
73 path = _write_py(tmp_path, '''
74 def foo():
75 """Constructor."""
76 pass
77 ''')
78 result = extract_python(path)
79 rationale = [n for n in result["nodes"] if n.get("file_type") == "rationale"]
80 assert len(rationale) == 0
81
82
83def test_rationale_confidence_is_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