mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Use fixture names everywhere
This commit is contained in:
@@ -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