summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklós Tusz <mdtusz@gmail.com>2018-12-21 20:28:17 -0800
committerMiklós Tusz <mdtusz@gmail.com>2018-12-21 20:28:17 -0800
commit48057407ec3d39fdf04d9ccf6c52fa1f7af46428 (patch)
tree2e140b056dc567d00c77e1d9cddd71dda0e3f851
parent4bf260e9535534021e51e4c7f50009430488d429 (diff)
downloadale-48057407ec3d39fdf04d9ccf6c52fa1f7af46428.zip
Fixup tests for auto-pipenv
-rw-r--r--autoload/ale/fixers/black.vim2
-rw-r--r--test/fixers/test_black_fixer_callback.vader2
2 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/fixers/black.vim b/autoload/ale/fixers/black.vim
index 35b6a734..27249c55 100644
--- a/autoload/ale/fixers/black.vim
+++ b/autoload/ale/fixers/black.vim
@@ -25,7 +25,7 @@ function! ale#fixers#black#Fix(buffer) abort
let l:options = ale#Var(a:buffer, 'python_black_options')
return {
- \ 'command': ale#Escape(l:executable. l:exec_args)
+ \ 'command': ale#Escape(l:executable) . l:exec_args
\ . (!empty(l:options) ? ' ' . l:options : '')
\ . ' -',
\}
diff --git a/test/fixers/test_black_fixer_callback.vader b/test/fixers/test_black_fixer_callback.vader
index b146afd6..7843783a 100644
--- a/test/fixers/test_black_fixer_callback.vader
+++ b/test/fixers/test_black_fixer_callback.vader
@@ -40,5 +40,5 @@ Execute(Pipenv is detected when python_black_auto_pipenv is set):
call ale#test#SetFilename('/testplugin/test/python_fixtures/pipenv/whatever.py')
AssertEqual
- \ {'command': ale#Escape('pipenv run black') . ' -'},
+ \ {'command': ale#Escape('pipenv') . ' run black -'},
\ ale#fixers#black#Fix(bufnr(''))