diff options
Diffstat (limited to 'test/fixers/test_black_fixer_callback.vader')
-rw-r--r-- | test/fixers/test_black_fixer_callback.vader | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/fixers/test_black_fixer_callback.vader b/test/fixers/test_black_fixer_callback.vader index bb76a1fe..079f5f8f 100644 --- a/test/fixers/test_black_fixer_callback.vader +++ b/test/fixers/test_black_fixer_callback.vader @@ -65,3 +65,13 @@ Execute(Poetry is detected when python_black_auto_poetry is set): AssertEqual \ {'command': ale#Escape('poetry') . ' run black -'}, \ ale#fixers#black#Fix(bufnr('')) + +Execute(uv is detected when python_black_auto_uv is set): + let g:ale_python_black_auto_uv = 1 + let g:ale_python_black_change_directory = 0 + + call ale#test#SetFilename('../test-files/python/uv/whatever.py') + + AssertEqual + \ {'command': ale#Escape('uv') . ' run black -'}, + \ ale#fixers#black#Fix(bufnr('')) |