From 48057407ec3d39fdf04d9ccf6c52fa1f7af46428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miklo=CC=81s=20Tusz?= Date: Fri, 21 Dec 2018 20:28:17 -0800 Subject: [PATCH] Fixup tests for auto-pipenv --- autoload/ale/fixers/black.vim | 2 +- test/fixers/test_black_fixer_callback.vader | 2 +- 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(''))