Fixup tests for auto-pipenv
This commit is contained in:
parent
4bf260e953
commit
48057407ec
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ function! ale#fixers#black#Fix(buffer) abort
|
||||||
let l:options = ale#Var(a:buffer, 'python_black_options')
|
let l:options = ale#Var(a:buffer, 'python_black_options')
|
||||||
|
|
||||||
return {
|
return {
|
||||||
\ 'command': ale#Escape(l:executable. l:exec_args)
|
\ 'command': ale#Escape(l:executable) . l:exec_args
|
||||||
\ . (!empty(l:options) ? ' ' . l:options : '')
|
\ . (!empty(l:options) ? ' ' . l:options : '')
|
||||||
\ . ' -',
|
\ . ' -',
|
||||||
\}
|
\}
|
||||||
|
|
|
@ -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')
|
call ale#test#SetFilename('/testplugin/test/python_fixtures/pipenv/whatever.py')
|
||||||
|
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ {'command': ale#Escape('pipenv run black') . ' -'},
|
\ {'command': ale#Escape('pipenv') . ' run black -'},
|
||||||
\ ale#fixers#black#Fix(bufnr(''))
|
\ ale#fixers#black#Fix(bufnr(''))
|
||||||
|
|
Reference in a new issue