diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-17 18:11:22 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-17 18:11:28 +0000 |
commit | 49ccfb1a00e09f6757b6e597883c95a34d612771 (patch) | |
tree | c8e9cb5928897c5ba3efe4aa85a85ac23f2c163d /test/handler | |
parent | 0e96d4576ad44ab66c075eed83d71ed0451dc645 (diff) | |
download | ale-49ccfb1a00e09f6757b6e597883c95a34d612771.zip |
Fix #516 - Add support for pyflakes for Python
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_pyflakes_handler.vader | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/handler/test_pyflakes_handler.vader b/test/handler/test_pyflakes_handler.vader new file mode 100644 index 00000000..ab4fab49 --- /dev/null +++ b/test/handler/test_pyflakes_handler.vader @@ -0,0 +1,24 @@ +Before: + runtime ale_linters/python/pyflakes.vim + +After: + call ale#linter#Reset() + +Execute(The pyflakes handler should handle basic errors): + AssertEqual + \ [ + \ { + \ 'lnum': 1, + \ 'col': 0, + \ 'text': 'undefined name ''foo''', + \ }, + \ { + \ 'lnum': 1, + \ 'col': 7, + \ 'text': 'invalid syntax', + \ }, + \ ], + \ ale_linters#python#pyflakes#Handle(bufnr(''), [ + \ 'test.py:1: undefined name ''foo''', + \ 'test.py:1:7: invalid syntax', + \ ]) |