summaryrefslogtreecommitdiff
path: root/test/handler/test_pyflakes_handler.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/handler/test_pyflakes_handler.vader')
-rw-r--r--test/handler/test_pyflakes_handler.vader24
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',
+ \ ])