mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Progress in removing the docstring/call signature logic from the parser.
This commit is contained in:
@@ -5,6 +5,7 @@ from jedi.parser.python import load_grammar
|
||||
from jedi.evaluate import compiled, instance
|
||||
from jedi.evaluate.representation import FunctionContext
|
||||
from jedi.evaluate import Evaluator
|
||||
from jedi.parser_utils import clean_scope_docstring
|
||||
from jedi import Script
|
||||
|
||||
|
||||
@@ -33,7 +34,8 @@ def test_fake_loading():
|
||||
|
||||
|
||||
def test_fake_docstr():
|
||||
assert compiled.create(_evaluator(), next).tree_node.raw_doc == next.__doc__
|
||||
node = compiled.create(_evaluator(), next).tree_node
|
||||
assert clean_scope_docstring(node) == next.__doc__
|
||||
|
||||
|
||||
def test_parse_function_doc_illegal_docstr():
|
||||
|
||||
Reference in New Issue
Block a user