Skip to content

Commit

Permalink
Fix linting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
CXuesong committed Apr 7, 2019
1 parent 688dee8 commit bc895dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/plugins/test_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def sym(name):
# Not going to get too in-depth here else we're just testing Jedi
assert sym('a')['location']['range']['start'] == {'line': 2, 'character': 0}


def test_symbols_hierarchical(config):
doc = Document(DOC_URI, DOC)

Expand All @@ -95,6 +96,7 @@ def test_symbols_hierarchical(config):

def sym(name):
return [s for s in symbols if s['name'] == name][0]

def child_sym(sym, name):
if not sym['children']:
return None
Expand All @@ -106,4 +108,4 @@ def child_sym(sym, name):
assert len(sym('B')['children']) == 1
assert child_sym(sym('B'), '__init__')['kind'] == SymbolKind.Function
assert child_sym(sym('B'), '__init__')['detail'] == 'B.__init__'
assert sym('main')['kind'] == SymbolKind.Function
assert sym('main')['kind'] == SymbolKind.Function

0 comments on commit bc895dd

Please sign in to comment.