diff options
author | w0rp <devw0rp@gmail.com> | 2018-02-04 13:16:44 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-02-04 13:16:44 +0000 |
commit | 0f822b063cb9553c9e00bc63d0184ba8577e6248 (patch) | |
tree | 5480af676cac50895a4db538efba4adbfded0c08 /test | |
parent | 31e0f48d62fdc5e9b3c4a0da1fc51ed94d9b335b (diff) | |
download | ale-0f822b063cb9553c9e00bc63d0184ba8577e6248.zip |
Fix #1330 - Find isort configs better by changing the working directory
Diffstat (limited to 'test')
-rw-r--r-- | test/fixers/test_isort_fixer_callback.vader | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/fixers/test_isort_fixer_callback.vader b/test/fixers/test_isort_fixer_callback.vader index 503057bb..7c2b515f 100644 --- a/test/fixers/test_isort_fixer_callback.vader +++ b/test/fixers/test_isort_fixer_callback.vader @@ -25,5 +25,8 @@ Execute(The isort callback should return the correct default values): silent execute 'file ' . fnameescape(g:dir . '/python_paths/with_virtualenv/subdir/foo/bar.py') AssertEqual - \ {'command': ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/isort')) . ' -' }, + \ { + \ 'command': 'cd ' . ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/subdir/foo')) . ' && ' + \ . ale#Escape(ale#path#Simplify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/isort')) . ' -', + \ }, \ ale#fixers#isort#Fix(bufnr('')) |