diff options
author | Miklós Tusz <mdtusz@gmail.com> | 2018-10-10 09:20:33 -0400 |
---|---|---|
committer | Miklós Tusz <mdtusz@gmail.com> | 2018-12-21 20:07:14 -0800 |
commit | 63e76875d5b4792ed4b29f7f58587ca495dcd9d5 (patch) | |
tree | 4afabb2c3f26beebf9cb13036f959c599521e2ec /test | |
parent | 1c9ad77866f360f88bcd37b5c625c3fb0c6ff6bb (diff) | |
download | ale-63e76875d5b4792ed4b29f7f58587ca495dcd9d5.zip |
Add test for python_black_auto_pipenv
Diffstat (limited to 'test')
-rw-r--r-- | test/fixers/test_black_fixer_callback.vader | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fixers/test_black_fixer_callback.vader b/test/fixers/test_black_fixer_callback.vader index 365b0fa6..43f1d486 100644 --- a/test/fixers/test_black_fixer_callback.vader +++ b/test/fixers/test_black_fixer_callback.vader @@ -37,3 +37,10 @@ Execute(The black callback should include options): AssertEqual \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/black')) . ' --some-option -' }, \ ale#fixers#black#Fix(bufnr('')) + +Execute(Pipenv is detected when python_black_auto_pipenv is set): + let g:ale_python_black_auto_pipenv = 1 + + AssertEqual + \ {'command': 'pipenv run mypy' }, + \ ale#fixers#black#Fix(bufnr('')) |