summaryrefslogtreecommitdiff
path: root/test/command_callback/test_pycodestyle_command_callback.vader
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-09-19 19:46:13 +0100
committerGitHub <noreply@github.com>2018-09-19 19:46:13 +0100
commit169a6e26b2ca63ab0f2f5bb3d2176ff0a2f68bc3 (patch)
tree4a561b7ec1d056eb30a4b988625b4a4c3d8d49e1 /test/command_callback/test_pycodestyle_command_callback.vader
parente82bcdb8a6dc888130c03bc80cba492051c5ffbf (diff)
parentdbe93529352880068cb738abb93a1bc009bf73ed (diff)
downloadale-169a6e26b2ca63ab0f2f5bb3d2176ff0a2f68bc3.zip
Merge pull request #1719 from elebow/auto-pipenv-option-for-python-linters
Add python_[linter]_auto_pipenv options for python linters (fixes #1656)
Diffstat (limited to 'test/command_callback/test_pycodestyle_command_callback.vader')
-rw-r--r--test/command_callback/test_pycodestyle_command_callback.vader7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/command_callback/test_pycodestyle_command_callback.vader b/test/command_callback/test_pycodestyle_command_callback.vader
index 851eede9..a3a338a9 100644
--- a/test/command_callback/test_pycodestyle_command_callback.vader
+++ b/test/command_callback/test_pycodestyle_command_callback.vader
@@ -24,3 +24,10 @@ Execute(Setting executable to 'pipenv' appends 'run pycodestyle'):
AssertLinter 'path/to/pipenv',
\ ale#Escape('path/to/pipenv') . ' run pycodestyle -'
+
+Execute(Pipenv is detected when python_pycodestyle_auto_pipenv is set):
+ let g:ale_python_pycodestyle_auto_pipenv = 1
+ call ale#test#SetFilename('/testplugin/test/python_fixtures/pipenv/whatever.py')
+
+ AssertLinter 'pipenv',
+ \ ale#Escape('pipenv') . ' run pycodestyle -'