mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
Move get_node() to tree_node and replace all the custom classdefs/funcdefs.
This commit is contained in:
@@ -257,7 +257,7 @@ def test_string_literals():
|
||||
""")
|
||||
|
||||
script = jedi.Script(dedent(source))
|
||||
script._get_module().module_node.end_pos == (6, 0)
|
||||
script._get_module().tree_node.end_pos == (6, 0)
|
||||
assert script.completions()
|
||||
|
||||
|
||||
@@ -275,7 +275,7 @@ def test_decorator_string_issue():
|
||||
|
||||
s = jedi.Script(source)
|
||||
assert s.completions()
|
||||
assert s._get_module().module_node.get_code() == source
|
||||
assert s._get_module().tree_node.get_code() == source
|
||||
|
||||
|
||||
def test_round_trip():
|
||||
|
||||
Reference in New Issue
Block a user