Get more random tests to pass on Windows

This commit is contained in:
w0rp
2017-10-08 23:26:50 +01:00
parent 65aa88a7d5
commit a809c4fa3a
12 changed files with 270 additions and 139 deletions

View File

@@ -9,15 +9,17 @@ After:
Restore
Execute(The pycodestyle command callback should return default string):
AssertEqual '''pycodestyle'' -',
AssertEqual ale#Escape('pycodestyle') . ' -',
\ ale_linters#python#pycodestyle#GetCommand(bufnr(''))
Execute(The pycodestyle command callback should allow options):
let g:ale_python_pycodestyle_options = '--exclude=test*.py'
AssertEqual '''pycodestyle'' --exclude=test*.py -',
AssertEqual ale#Escape('pycodestyle') . ' --exclude=test*.py -',
\ ale_linters#python#pycodestyle#GetCommand(bufnr(''))
Execute(The pycodestyle executable should be configurable):
let g:ale_python_pycodestyle_executable = '~/.local/bin/pycodestyle'
AssertEqual '''~/.local/bin/pycodestyle'' -',
AssertEqual ale#Escape('~/.local/bin/pycodestyle') . ' -',
\ ale_linters#python#pycodestyle#GetCommand(bufnr(''))