test_evaluate -> test_inference
This commit is contained in:
1 parent
a23bbbfbb9
commit
e4d1e5455f
62 files changed
+5
-5
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -5,7 +5,7 @@ Python 2.X)
|
|||||||
from .. import helpers
|
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):
|
def test_can_complete_when_shadowing(Script):
|
||||||
script = Script(path="unittest.py")
|
script = Script(path="unittest.py")
|
||||||
assert script.completions()
|
assert script.completions()
|
||||||
File renamed without changes.
File renamed without changes.
@@ -119,7 +119,7 @@ def _return_int():
|
|||||||
('cos', 'cos', 'math'),
|
('cos', 'cos', 'math'),
|
||||||
('dec', 'Decimal', 'decimal'),
|
('dec', 'Decimal', 'decimal'),
|
||||||
('dt', 'datetime', 'datetime'),
|
('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):
|
def test_parent_context(same_process_evaluator, attribute, expected_name, expected_parent):
|
||||||
File renamed without changes.
File renamed without changes.
@@ -35,7 +35,7 @@ def test_call_signatures_stdlib(Script):
|
|||||||
|
|
||||||
# Check only on linux 64 bit platform and Python3.4.
|
# 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)')
|
@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):
|
def test_init_extension_module(Script):
|
||||||
"""
|
"""
|
||||||
``__init__`` extension modules are also packages and Jedi should understand
|
``__init__`` extension modules are also packages and Jedi should understand
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -111,7 +111,7 @@ def test_find_module_not_package_zipped(Script, evaluator, environment):
|
|||||||
assert is_package is False
|
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):
|
def test_import_not_in_sys_path(Script):
|
||||||
"""
|
"""
|
||||||
non-direct imports (not in sys.path)
|
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]
|
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):
|
def test_not_importable_file(Script):
|
||||||
src = 'import not_importable_file as x; x.'
|
src = 'import not_importable_file as x; x.'
|
||||||
assert not Script(src, path='example.py').completions()
|
assert not Script(src, path='example.py').completions()
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user