mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
11 lines
263 B
Python
11 lines
263 B
Python
from jedi import Script
|
|
|
|
|
|
def test_module_attributes():
|
|
def_, = Script('__name__').completions()
|
|
assert def_.name == '__name__'
|
|
assert def_.line is None
|
|
assert def_.column is None
|
|
str_, = def_._goto_definitions()
|
|
assert str_.name == 'str'
|