mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-14 06:38:57 +08:00
Use fixture names everywhere
This commit is contained in:
1 parent
b7687fcfb7
commit
a06d760f45
1 file changed
+2
-2
@@ -7,7 +7,7 @@ from inspect import cleandoc
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import jedi
|
import jedi
|
||||||
from jedi import __doc__ as jedi_doc, names
|
from jedi import __doc__ as jedi_doc
|
||||||
from jedi.evaluate.compiled import CompiledContextName
|
from jedi.evaluate.compiled import CompiledContextName
|
||||||
|
|
||||||
|
|
||||||
@@ -390,7 +390,7 @@ def test_import(names):
|
|||||||
assert n.type == 'module'
|
assert n.type == 'module'
|
||||||
|
|
||||||
|
|
||||||
def test_import_alias(environment):
|
def test_import_alias(names):
|
||||||
nms = names('import json as foo', references=True)
|
nms = names('import json as foo', references=True)
|
||||||
assert nms[0].name == 'json'
|
assert nms[0].name == 'json'
|
||||||
assert nms[0].type == 'module'
|
assert nms[0].type == 'module'
|
||||||
|
|||||||
Reference in new issue
Block a user