mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Test module attributes.
This commit is contained in:
10
test/test_evaluate/test_context.py
Normal file
10
test/test_evaluate/test_context.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from jedi import Script
|
||||
|
||||
|
||||
def test_module_attributes():
|
||||
def_, = Script('__name__').completions()
|
||||
assert def_.name == '__name__'
|
||||
assert def_.line == None
|
||||
assert def_.column == None
|
||||
str_, = def_._goto_definitions()
|
||||
assert str_.name == 'str'
|
||||
Reference in New Issue
Block a user