Move get_module_contexts_containing_name to the references module

This commit is contained in:
Dave Halter
2020-01-17 22:49:05 +01:00
parent 4cd2b9a355
commit 26f0fa9eb0
7 changed files with 88 additions and 65 deletions

View File

@@ -13,6 +13,7 @@ from jedi.inference import compiled
from jedi.inference import imports
from jedi.api.project import Project
from jedi.inference.gradual.conversion import _stub_to_python_value_set
from jedi.inference.references import get_module_contexts_containing_name
from ..helpers import cwd_at, get_example_dir, test_dir, root_dir
THIS_DIR = os.path.dirname(__file__)
@@ -319,7 +320,7 @@ def test_get_modules_containing_name(inference_state, path, goal, is_package):
)
assert module
module_context = module.as_context()
input_module, found_module = imports.get_module_contexts_containing_name(
input_module, found_module = get_module_contexts_containing_name(
inference_state,
[module_context],
'string_that_only_exists_here'