Group handler test cases in a directory

This commit is contained in:
w0rp
2017-03-06 23:32:48 +00:00
parent 75a2dc5ff5
commit 663d8f832f
13 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
Execute(The mypy handler should parse lines correctly):
runtime ale_linters/python/mypy.vim
AssertEqual
\ [
\ {
\ 'bufnr': 347,
\ 'lnum': 4,
\ 'col': 0,
\ 'text': "No library stub file for module 'django.db'",
\ 'type': 'E',
\ },
\ {
\ 'bufnr': 347,
\ 'lnum': 40,
\ 'col': 5,
\ 'text': "Some other problem",
\ 'type': 'E',
\ },
\ ],
\ 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)',
\ "file.py:40:5: error: Some other problem",
\ ])
After:
call ale#linter#Reset()