summaryrefslogtreecommitdiff
path: root/test/handler/test_unimport_handler.vader
blob: 5acdcbb900702d050701a20bd9b56885e613c28e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Before:
  runtime ale_linters/python/unimport.vim

After:
  call ale#linter#Reset()

Execute(The unimport handler should handle import warnings):
  AssertEqual
  \ [
  \   {
  \     'lnum': 9,
  \     'type': 'W',
  \     'text': 'unused: urllib.parse',
  \   },
  \ ],
  \ ale_linters#python#unimport#Handle(1, [
  \     'urllib.parse at path/to/file.py:9',
  \ ])