mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-31 00:24:31 +08:00
Group handler test cases in a directory
This commit is contained in:
28
test/handler/test_mypy_handler.vader
Normal file
28
test/handler/test_mypy_handler.vader
Normal 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()
|
||||
Reference in New Issue
Block a user