File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ def sym(name):
78
78
# Not going to get too in-depth here else we're just testing Jedi
79
79
assert sym ('a' )['location' ]['range' ]['start' ] == {'line' : 2 , 'character' : 0 }
80
80
81
+
81
82
def test_symbols_hierarchical (config ):
82
83
doc = Document (DOC_URI , DOC )
83
84
@@ -95,6 +96,7 @@ def test_symbols_hierarchical(config):
95
96
96
97
def sym (name ):
97
98
return [s for s in symbols if s ['name' ] == name ][0 ]
99
+
98
100
def child_sym (sym , name ):
99
101
if not sym ['children' ]:
100
102
return None
@@ -106,4 +108,4 @@ def child_sym(sym, name):
106
108
assert len (sym ('B' )['children' ]) == 1
107
109
assert child_sym (sym ('B' ), '__init__' )['kind' ] == SymbolKind .Function
108
110
assert child_sym (sym ('B' ), '__init__' )['detail' ] == 'B.__init__'
109
- assert sym ('main' )['kind' ] == SymbolKind .Function
111
+ assert sym ('main' )['kind' ] == SymbolKind .Function
You can’t perform that action at this time.
0 commit comments