summaryrefslogtreecommitdiff
path: root/test/handler/test_pyflakes_handler.vader
blob: ab4fab49adfdb7ca26e3322c3f6da1bdff8b5f70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Before:
  runtime ale_linters/python/pyflakes.vim

After:
  call ale#linter#Reset()

Execute(The pyflakes handler should handle basic errors):
  AssertEqual
  \ [
  \   {
  \     'lnum': 1,
  \     'col': 0,
  \     'text': 'undefined name ''foo''',
  \   },
  \   {
  \     'lnum': 1,
  \     'col': 7,
  \     'text': 'invalid syntax',
  \   },
  \ ],
  \ ale_linters#python#pyflakes#Handle(bufnr(''), [
  \   'test.py:1: undefined name ''foo''',
  \   'test.py:1:7: invalid syntax',
  \ ])