diff options
author | w0rp <w0rp@users.noreply.github.com> | 2019-02-20 09:54:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-20 09:54:13 +0000 |
commit | 707a42167f184355b64e1368a5e390dffc0cb885 (patch) | |
tree | 4c92c8f141a4f4dda015d5c818c2150ad532b313 /test/command_callback | |
parent | 09cbd70d9bc49dee421e0d4fdb252f8a77d8b1d6 (diff) | |
parent | 3300b1aca7f53a8468547194d074e1cb5bc55e15 (diff) | |
download | ale-707a42167f184355b64e1368a5e390dffc0cb885.zip |
Merge pull request #2302 from kevinoid/pylint-cd-proj-root
python/pylint: Change directory to project root
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/test_pylint_command_callback.vader | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/command_callback/test_pylint_command_callback.vader b/test/command_callback/test_pylint_command_callback.vader index 6b21b127..c41c8398 100644 --- a/test/command_callback/test_pylint_command_callback.vader +++ b/test/command_callback/test_pylint_command_callback.vader @@ -39,7 +39,7 @@ Execute(The pylint callbacks shouldn't detect virtualenv directories where they silent execute 'file ' . fnameescape(g:dir . '/python_paths/no_virtualenv/subdir/foo/bar.py') AssertLinter 'pylint', - \ ale#path#BufferCdString(bufnr('')) + \ ale#path#CdString(ale#path#Simplify(g:dir . '/python_paths/no_virtualenv/subdir')) \ . ale#Escape('pylint') . ' ' . b:command_tail Execute(The pylint callbacks should detect virtualenv directories): @@ -50,7 +50,7 @@ Execute(The pylint callbacks should detect virtualenv directories): \) AssertLinter b:executable, - \ ale#path#BufferCdString(bufnr('')) + \ ale#path#CdString(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/subdir')) \ . ale#Escape(b:executable) . ' ' . b:command_tail Execute(You should able able to use the global pylint instead): @@ -58,7 +58,7 @@ Execute(You should able able to use the global pylint instead): let g:ale_python_pylint_use_global = 1 AssertLinter 'pylint', - \ ale#path#BufferCdString(bufnr('')) + \ ale#path#CdString(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/subdir')) \ . ale#Escape('pylint') . ' ' . b:command_tail Execute(Setting executable to 'pipenv' appends 'run pylint'): |