mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
test_evaluate -> test_inference
This commit is contained in:
@@ -5,7 +5,7 @@ Python 2.X)
|
||||
from .. import helpers
|
||||
|
||||
|
||||
@helpers.cwd_at("test/test_evaluate/absolute_import")
|
||||
@helpers.cwd_at("test/test_inference/absolute_import")
|
||||
def test_can_complete_when_shadowing(Script):
|
||||
script = Script(path="unittest.py")
|
||||
assert script.completions()
|
||||
@@ -119,7 +119,7 @@ def _return_int():
|
||||
('cos', 'cos', 'math'),
|
||||
('dec', 'Decimal', 'decimal'),
|
||||
('dt', 'datetime', 'datetime'),
|
||||
('ret_int', '_return_int', 'test.test_evaluate.test_compiled'),
|
||||
('ret_int', '_return_int', 'test.test_inference.test_compiled'),
|
||||
]
|
||||
)
|
||||
def test_parent_context(same_process_evaluator, attribute, expected_name, expected_parent):
|
||||
@@ -35,7 +35,7 @@ def test_call_signatures_stdlib(Script):
|
||||
|
||||
# Check only on linux 64 bit platform and Python3.4.
|
||||
@pytest.mark.skipif('sys.platform != "linux" or sys.maxsize <= 2**32 or sys.version_info[:2] != (3, 4)')
|
||||
@cwd_at('test/test_evaluate')
|
||||
@cwd_at('test/test_inference')
|
||||
def test_init_extension_module(Script):
|
||||
"""
|
||||
``__init__`` extension modules are also packages and Jedi should understand
|
||||
@@ -111,7 +111,7 @@ def test_find_module_not_package_zipped(Script, evaluator, environment):
|
||||
assert is_package is False
|
||||
|
||||
|
||||
@cwd_at('test/test_evaluate/not_in_sys_path/pkg')
|
||||
@cwd_at('test/test_inference/not_in_sys_path/pkg')
|
||||
def test_import_not_in_sys_path(Script):
|
||||
"""
|
||||
non-direct imports (not in sys.path)
|
||||
@@ -147,7 +147,7 @@ def test_flask_ext(Script, code, name):
|
||||
assert name in [c.name for c in completions]
|
||||
|
||||
|
||||
@cwd_at('test/test_evaluate/')
|
||||
@cwd_at('test/test_inference/')
|
||||
def test_not_importable_file(Script):
|
||||
src = 'import not_importable_file as x; x.'
|
||||
assert not Script(src, path='example.py').completions()
|
||||
Reference in New Issue
Block a user