summaryrefslogtreecommitdiff
path: root/test/test_mypy_handler.vader
blob: 5fe17f75f52bde21507377d2ade484eaafba4e07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Execute(The mypy handler should parse lines correctly):
  runtime ale_linters/python/mypy.vim

  AssertEqual
  \ [
  \   {
  \     'bufnr': 347,
  \     'lnum': 4,
  \     'vcol': 0,
  \     'col': 0,
  \     'text': "No library stub file for module 'django.db'",
  \     'type': 'E',
  \     'nr': -1,
  \   },
  \ ],
  \ ale_linters#python#mypy#Handle(347, [
  \   "file.py:4: error: No library stub file for module 'django.db'",
  \   'file.py:4: note: (Stub files are from https://github.com/python/typeshed)',
  \ ])

After:
  call ale#linter#Reset()