diff options
author | Irwan Djajadi <irwan@djajadi.net> | 2019-01-16 11:27:34 -0600 |
---|---|---|
committer | Irwan Djajadi <irwan@djajadi.net> | 2019-01-16 11:27:34 -0600 |
commit | cdc3bc9238d2aca4b6f30511071b59415e9b79f7 (patch) | |
tree | 040e92a658c31b46d74f1881f1ca6397c9dae7de /test/handler/test_flake8_handler.vader | |
parent | 08affaad7a0e847f40017a275adf50502f02ea81 (diff) | |
download | ale-cdc3bc9238d2aca4b6f30511071b59415e9b79f7.zip |
added hacking compatibility test
Diffstat (limited to 'test/handler/test_flake8_handler.vader')
-rw-r--r-- | test/handler/test_flake8_handler.vader | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/handler/test_flake8_handler.vader b/test/handler/test_flake8_handler.vader index cdf20bc0..fe42211a 100644 --- a/test/handler/test_flake8_handler.vader +++ b/test/handler/test_flake8_handler.vader @@ -258,3 +258,19 @@ Execute(E112 should be a syntax error): \ ale_linters#python#flake8#Handle(bufnr(''), [ \ 'foo.py:6:1: E112 expected an indented block', \ ]) + +Execute(Compatibility with hacking which uses older style flake8): + AssertEqual + \ [ + \ { + \ 'lnum': 6, + \ 'col': 1, + \ 'vcol': 1, + \ 'code': 'H306', + \ 'type': 'W', + \ 'text': 'imports not in alphabetical order (smtplib, io)', + \ }, + \ ], + \ ale_linters#python#flake8#Handle(bufnr(''), [ + \ 'foo.py:6:1: H306: imports not in alphabetical order (smtplib, io)', + \ ]) |