File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ def sym(name):
7878 # Not going to get too in-depth here else we're just testing Jedi
7979 assert sym ('a' )['location' ]['range' ]['start' ] == {'line' : 2 , 'character' : 0 }
8080
81+
8182def test_symbols_hierarchical (config ):
8283 doc = Document (DOC_URI , DOC )
8384
@@ -95,6 +96,7 @@ def test_symbols_hierarchical(config):
9596
9697 def sym (name ):
9798 return [s for s in symbols if s ['name' ] == name ][0 ]
99+
98100 def child_sym (sym , name ):
99101 if not sym ['children' ]:
100102 return None
@@ -106,4 +108,4 @@ def child_sym(sym, name):
106108 assert len (sym ('B' )['children' ]) == 1
107109 assert child_sym (sym ('B' ), '__init__' )['kind' ] == SymbolKind .Function
108110 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