summaryrefslogtreecommitdiff
path: root/test/test_mypy_handler.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-01-20 17:30:23 +0000
committerw0rp <devw0rp@gmail.com>2017-01-20 17:30:34 +0000
commit9820899b9e09dba27a1fc0867fde3012769a01e7 (patch)
treece9e86e043087c765851fc0e779f934926ccc353 /test/test_mypy_handler.vader
parentea438be5c108aba328db790ab0d08531ea74abd1 (diff)
downloadale-9820899b9e09dba27a1fc0867fde3012769a01e7.zip
Improve mypy handling a little bit more
Diffstat (limited to 'test/test_mypy_handler.vader')
-rw-r--r--test/test_mypy_handler.vader22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/test_mypy_handler.vader b/test/test_mypy_handler.vader
new file mode 100644
index 00000000..5fe17f75
--- /dev/null
+++ b/test/test_mypy_handler.vader
@@ -0,0 +1,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()