forked from VimPlug/jedi
17 lines
494 B
Python
17 lines
494 B
Python
from jedi.parser import Parser
|
|
from jedi.parser import representation as pr
|
|
from jedi._compatibility import u
|
|
|
|
import pytest
|
|
|
|
|
|
def test_import_is_nested():
|
|
imp = Parser(u('import ')).module.imports[0]
|
|
# should not raise an error, even if it's not a complete import
|
|
assert not imp.is_nested()
|
|
|
|
|
|
@pytest.mark.skipif('True', 'Reenable this later, module should also have a scope_names_generator.')
|
|
def test_module_scope_name_generator():
|
|
assert pr.Module().scope_names_generator()
|