summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-06-03 18:52:15 +0100
committerGitHub <noreply@github.com>2018-06-03 18:52:15 +0100
commita8bbf49a315ac2238d4bc0d55a681dc3c8ccf787 (patch)
tree42d1221e88465e633cdfdab3569f34bd151257ed /test
parent0db12702f33ad139ec3290508b6602ff16d0d444 (diff)
parentdd642b117c2a9fd9bba9a452d147526e9858ec0d (diff)
downloadale-a8bbf49a315ac2238d4bc0d55a681dc3c8ccf787.zip
Merge pull request #1625 from elebow/flake8-pipenv-run
Allow flake8 executable to be set to `pipenv`.
Diffstat (limited to 'test')
-rw-r--r--test/command_callback/test_flake8_command_callback.vader8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/command_callback/test_flake8_command_callback.vader b/test/command_callback/test_flake8_command_callback.vader
index ecd06332..1cc50836 100644
--- a/test/command_callback/test_flake8_command_callback.vader
+++ b/test/command_callback/test_flake8_command_callback.vader
@@ -174,3 +174,11 @@ Execute(Using `python -m flake8` should be supported for running flake8):
\ ale#path#BufferCdString(bufnr(''))
\ . ale#Escape('python') . ' -m flake8 --some-option --format=default -',
\ ale_linters#python#flake8#GetCommand(bufnr(''), ['2.9.9'])
+
+Execute(Setting executable to 'pipenv' appends 'run flake8'):
+ let g:ale_python_flake8_executable = 'path/to/pipenv'
+
+ AssertEqual
+ \ ale#path#BufferCdString(bufnr(''))
+ \ . ale#Escape('path/to/pipenv') . ' run flake8 --format=default --stdin-display-name %s -',
+ \ ale_linters#python#flake8#GetCommand(bufnr(''), ['3.0.0'])