mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-14 06:38:57 +08:00
Move another test to examples
This commit is contained in:
1 parent
1e27491545
commit
c79269b3ee
5 files changed
+2
-2
No files matched your search
+1
-1
@@ -4,7 +4,7 @@ addopts = --doctest-modules
|
|||||||
# Ignore broken files in blackbox test directories
|
# Ignore broken files in blackbox test directories
|
||||||
norecursedirs = .* docs completion refactor namespace_package
|
norecursedirs = .* docs completion refactor namespace_package
|
||||||
scripts extensions speed static_analysis not_in_sys_path
|
scripts extensions speed static_analysis not_in_sys_path
|
||||||
sample_venvs init_extension_module simple_import jedi/third_party
|
sample_venvs init_extension_module jedi/third_party
|
||||||
|
|
||||||
# Activate `clean_jedi_cache` fixture for all tests. This should be
|
# Activate `clean_jedi_cache` fixture for all tests. This should be
|
||||||
# fine as long as we are using `clean_jedi_cache` as a session scoped
|
# fine as long as we are using `clean_jedi_cache` as a session scoped
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -236,7 +236,7 @@ def test_goto_module(Script):
|
|||||||
module, = script.goto(line=line, follow_imports=follow_imports)
|
module, = script.goto(line=line, follow_imports=follow_imports)
|
||||||
assert module.module_path == expected
|
assert module.module_path == expected
|
||||||
|
|
||||||
base_path = os.path.join(os.path.dirname(__file__), 'simple_import')
|
base_path = get_example_dir('simple_import')
|
||||||
path = os.path.join(base_path, '__init__.py')
|
path = os.path.join(base_path, '__init__.py')
|
||||||
|
|
||||||
check(1, os.path.join(base_path, 'module.py'))
|
check(1, os.path.join(base_path, 'module.py'))
|
||||||
|
|||||||
Reference in new issue
Block a user