summaryrefslogtreecommitdiff
path: root/test/handler/test_mypy_handler.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-03-06 23:32:48 +0000
committerw0rp <devw0rp@gmail.com>2017-03-06 23:32:48 +0000
commit663d8f832fb2d59751722dc9f22f5c44dcc84b31 (patch)
tree592f1cf1bf2c8fa67dada4d4062045d9db1f30ab /test/handler/test_mypy_handler.vader
parent75a2dc5ff5f1975b1a80b59704ffdfd1902b050f (diff)
downloadale-663d8f832fb2d59751722dc9f22f5c44dcc84b31.zip
Group handler test cases in a directory
Diffstat (limited to 'test/handler/test_mypy_handler.vader')
-rw-r--r--test/handler/test_mypy_handler.vader28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/handler/test_mypy_handler.vader b/test/handler/test_mypy_handler.vader
new file mode 100644
index 00000000..e161f8ae
--- /dev/null
+++ b/test/handler/test_mypy_handler.vader
@@ -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()