mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-09 14:55:52 +08:00
Get fixer tests to work on Windows
This commit is contained in:
1 parent
638ca42082
commit
5091e2de45
15 files changed
+106
-68
No files matched your search
@@ -9,9 +9,13 @@ Before:
|
||||
silent cd command_callback
|
||||
let g:dir = getcwd()
|
||||
|
||||
let b:bin_dir = has('win32') ? 'Scripts' : 'bin'
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
unlet! b:bin_dir
|
||||
|
||||
call ale#test#RestoreDirectory()
|
||||
|
||||
Execute(The isort callback should return the correct default values):
|
||||
@@ -21,5 +25,5 @@ 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': "'" . g:dir . "/python_paths/with_virtualenv/env/bin/isort' -" },
|
||||
\ {'command': ale#Escape(ale#path#Winify(g:dir . '/python_paths/with_virtualenv/env/' . b:bin_dir . '/isort')) . ' -' },
|
||||
\ ale#fixers#isort#Fix(bufnr(''))
|
||||
Reference in new issue
Block a user