Fixup tests for auto-pipenv

This commit is contained in:
Miklós Tusz 2018-12-21 20:28:17 -08:00
parent 4bf260e953
commit 48057407ec
2 changed files with 2 additions and 2 deletions

View File

@ -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 : '')
\ . ' -',
\}

View File

@ -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(''))