diff options
author | w0rp <devw0rp@gmail.com> | 2017-06-14 16:20:30 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-06-14 16:20:30 +0100 |
commit | f6b0a28cbacba36954cec02bffaee9f126610d69 (patch) | |
tree | 301cc8b3839d5c629066366a645c5776e4672a7b /test/handler/test_ansible_lint_handler.vader | |
parent | 3442e58c8b2dfadd1bc53445ce3c4cf198ce3f0d (diff) | |
download | ale-f6b0a28cbacba36954cec02bffaee9f126610d69.zip |
Split up the flake8 and ansible-lint handlers
Diffstat (limited to 'test/handler/test_ansible_lint_handler.vader')
-rw-r--r-- | test/handler/test_ansible_lint_handler.vader | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/handler/test_ansible_lint_handler.vader b/test/handler/test_ansible_lint_handler.vader new file mode 100644 index 00000000..6e0261d2 --- /dev/null +++ b/test/handler/test_ansible_lint_handler.vader @@ -0,0 +1,33 @@ +Before: + runtime ale_linters/ansible/ansible_lint.vim + +After: + call ale#linter#Reset() + +Execute(The ansible-lint handler should handle basic errors): + AssertEqual + \ [ + \ { + \ 'lnum': 35, + \ 'col': 0, + \ 'type': 'E', + \ 'text': "EANSIBLE0002: Trailing whitespace", + \ }, + \ ], + \ ale_linters#ansible#ansible_lint#Handle(42, [ + \ "test.yml:35: [EANSIBLE0002] Trailing whitespace", + \ ]) + +Execute (The ansible-lint handler should handle names with spaces): + AssertEqual + \ [ + \ { + \ 'lnum': 6, + \ 'col': 6, + \ 'type': 'E', + \ 'text': 'E111: indentation is not a multiple of four', + \ }, + \ ], + \ ale_linters#python#flake8#Handle(42, [ + \ 'C:\something\with spaces.yml:6:6: E111 indentation is not a multiple of four', + \ ]) |