diff options
author | w0rp <devw0rp@gmail.com> | 2020-09-09 21:42:27 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2020-09-09 21:45:15 +0100 |
commit | 4ddf74264397a0c739b1c6fd5f643505a31e1d11 (patch) | |
tree | 5745b0de17ad7380fb47c6354e9aca42d853956e /test/test_computed_lint_file_values.vader | |
parent | 78fa93bd55be70c00d0342655bcdfada338e6e79 (diff) | |
download | ale-4ddf74264397a0c739b1c6fd5f643505a31e1d11.zip |
Close #2522 - Check pylint on the fly
Newer versions of pylint will now check your code as you type. Older
versions will still only check the file on disk.
Co-authored-by: Oliver Wiegers <oliver.wiegers@gmail.com>
Diffstat (limited to 'test/test_computed_lint_file_values.vader')
-rw-r--r-- | test/test_computed_lint_file_values.vader | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/test_computed_lint_file_values.vader b/test/test_computed_lint_file_values.vader index 399e96fe..ed0d4c0c 100644 --- a/test/test_computed_lint_file_values.vader +++ b/test/test_computed_lint_file_values.vader @@ -132,3 +132,19 @@ Execute(Linters where lint_file eventually evaluates to 1 shouldn't be run if we call ale#test#FlushJobs() AssertEqual [], ale#test#GetLoclistWithoutModule() + +Execute(Keeping computed lint_file jobs running should work): + AssertEqual 'testlinter2', ale#linter#Get('foobar')[1].name + + call ale#engine#InitBufferInfo(bufnr('')) + + call ale#engine#MarkLinterActive( + \ g:ale_buffer_info[bufnr('')], + \ ale#linter#Get('foobar')[1] + \) + call ale#engine#RunLinters(bufnr(''), ale#linter#Get('foobar'), 0) + + Assert !empty(g:ale_buffer_info[bufnr('')].active_linter_list), + \ 'The active linter list was empty' + Assert ale#engine#IsCheckingBuffer(bufnr('')), + \ 'The IsCheckingBuffer function returned 0' |