1
0
forked from VimPlug/jedi

Move execute_evaluated to HelperContextMixin

This commit is contained in:
Dave Halter
2019-06-11 17:42:09 +02:00
parent f672d3329a
commit 78973a9f35
8 changed files with 13 additions and 27 deletions

View File

@@ -1,7 +1,5 @@
from textwrap import dedent
from jedi.evaluate.helpers import execute_evaluated
def get_definition_and_evaluator(Script, source):
first, = Script(dedent(source)).goto_definitions()
@@ -22,8 +20,8 @@ def test_function_execution(Script):
# Now just use the internals of the result (easiest way to get a fully
# usable function).
# Should return the same result both times.
assert len(execute_evaluated(func)) == 1
assert len(execute_evaluated(func)) == 1
assert len(func.execute_evaluated()) == 1
assert len(func.execute_evaluated()) == 1
def test_class_mro(Script):