summaryrefslogtreecommitdiff
path: root/test/handler/test_pylint_handler.vader
diff options
context:
space:
mode:
authorKatsuya Horiuchi <katsuya.horiuchi.biz@gmail.com>2019-05-10 01:28:18 +0900
committerw0rp <w0rp@users.noreply.github.com>2019-05-09 17:28:18 +0100
commitf444abdfe66696505cb891889b18c4144d12d4ea (patch)
treec0b5c57c854c9e69dcc5a243fc2758f81aed98bc /test/handler/test_pylint_handler.vader
parent722c3e8dae80b9cea738ddb3df4f7d066d669e53 (diff)
downloadale-f444abdfe66696505cb891889b18c4144d12d4ea.zip
Add option to show msg id when pylint is used (#2445)
* Add python_pylint_use_msg_id to tweak output of pylint * Add test for ale_python_pylint_use_msg_id * Add doc on ale_python_pylint_use_msg_id
Diffstat (limited to 'test/handler/test_pylint_handler.vader')
-rw-r--r--test/handler/test_pylint_handler.vader20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/handler/test_pylint_handler.vader b/test/handler/test_pylint_handler.vader
index 18f66526..ce7322f3 100644
--- a/test/handler/test_pylint_handler.vader
+++ b/test/handler/test_pylint_handler.vader
@@ -113,3 +113,23 @@ Execute(The pylint handler should parse Windows filenames):
\ '------------------------------------------------------------------',
\ 'Your code has been rated at 5.83/10 (previous run: 5.83/10, +0.00)',
\ ])
+
+Execute(Use msg_id):
+ let g:ale_python_pylint_use_msg_id = 1
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 13,
+ \ 'col': 6,
+ \ 'text': 'Undefined variable ''x''',
+ \ 'code': 'E0602',
+ \ 'type': 'E',
+ \ },
+ \ ],
+ \ ale_linters#python#pylint#Handle(bufnr(''), [
+ \ '************* Module test',
+ \ 'D:\acm\github\vim\tools\test.py:13:5: E0602 (undefined-variable) Undefined variable ''x''',
+ \ '',
+ \ '------------------------------------------------------------------',
+ \ 'Your code has been rated at 5.83/10 (previous run: 5.83/10, +0.00)',
+ \ ])