mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-13 21:08:55 +08:00
Moved zipped imports test files
This commit is contained in:
1 parent
46f8e53e71
commit
f3919823fb
3 files changed
+2
-4
No files matched your search
File renamed without changes.
File renamed without changes.
@@ -38,9 +38,7 @@ def test_find_module_not_package():
|
|||||||
assert is_package is False
|
assert is_package is False
|
||||||
|
|
||||||
|
|
||||||
pkg_zip_path = os.path.join(os.path.dirname(__file__),
|
pkg_zip_path = get_example_dir('zipped_imports', 'pkg.zip')
|
||||||
'zipped_imports',
|
|
||||||
'pkg.zip')
|
|
||||||
|
|
||||||
|
|
||||||
def test_find_module_package_zipped(Script, inference_state, environment):
|
def test_find_module_package_zipped(Script, inference_state, environment):
|
||||||
@@ -97,7 +95,7 @@ def test_correct_zip_package_behavior(Script, inference_state, environment, code
|
|||||||
|
|
||||||
|
|
||||||
def test_find_module_not_package_zipped(Script, inference_state, environment):
|
def test_find_module_not_package_zipped(Script, inference_state, environment):
|
||||||
path = os.path.join(os.path.dirname(__file__), 'zipped_imports/not_pkg.zip')
|
path = get_example_dir('zipped_imports', 'not_pkg.zip')
|
||||||
sys_path = environment.get_sys_path() + [path]
|
sys_path = environment.get_sys_path() + [path]
|
||||||
script = Script('import not_pkg; not_pkg.val', sys_path=sys_path)
|
script = Script('import not_pkg; not_pkg.val', sys_path=sys_path)
|
||||||
assert len(script.complete()) == 1
|
assert len(script.complete()) == 1
|
||||||
|
|||||||
Reference in new issue
Block a user