mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
committed by
Dave Halter
parent
18eb7622ba
commit
02d16ac55c
@@ -8,7 +8,7 @@ import pytest
|
||||
import jedi
|
||||
from jedi._compatibility import is_py3, py_version
|
||||
from jedi.evaluate.compiled import mixed
|
||||
|
||||
from importlib import import_module
|
||||
|
||||
if py_version > 30:
|
||||
def exec_(source, global_map):
|
||||
@@ -439,3 +439,9 @@ def test__wrapped__():
|
||||
c, = jedi.Interpreter('syslogs_to_df', [locals()]).completions()
|
||||
# Apparently the function starts on the line where the decorator starts.
|
||||
assert c.line == syslogs_to_df.__wrapped__.__code__.co_firstlineno + 1
|
||||
|
||||
@pytest.mark.parametrize('module_name', ['sys', 'time'])
|
||||
def test_core_module_completes(module_name):
|
||||
module = import_module(module_name)
|
||||
assert jedi.Interpreter(module_name + '.\n', [locals()]).completions()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user