summaryrefslogtreecommitdiff
path: root/test/handler/test_unimport_handler.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/handler/test_unimport_handler.vader')
-rw-r--r--test/handler/test_unimport_handler.vader18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/handler/test_unimport_handler.vader b/test/handler/test_unimport_handler.vader
new file mode 100644
index 00000000..5acdcbb9
--- /dev/null
+++ b/test/handler/test_unimport_handler.vader
@@ -0,0 +1,18 @@
+Before:
+ runtime ale_linters/python/unimport.vim
+
+After:
+ call ale#linter#Reset()
+
+Execute(The unimport handler should handle import warnings):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 9,
+ \ 'type': 'W',
+ \ 'text': 'unused: urllib.parse',
+ \ },
+ \ ],
+ \ ale_linters#python#unimport#Handle(1, [
+ \ 'urllib.parse at path/to/file.py:9',
+ \ ])