diff options
author | w0rp <devw0rp@gmail.com> | 2020-08-28 17:46:43 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2020-08-28 17:46:43 +0100 |
commit | 3d5a2690ce707cbc9e71e8ed4d5d1955e4b26d65 (patch) | |
tree | 3ff7e13bb0cd6fd13ef4eae739230b40f0c490de /test/command_callback/test_mypy_command_callback.vader | |
parent | 34e409ea21baa017776b84ec0620eea9f6ec429c (diff) | |
download | ale-3d5a2690ce707cbc9e71e8ed4d5d1955e4b26d65.zip |
#3325 - ale#path#BufferCdString now generates %s:h
Diffstat (limited to 'test/command_callback/test_mypy_command_callback.vader')
-rw-r--r-- | test/command_callback/test_mypy_command_callback.vader | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/command_callback/test_mypy_command_callback.vader b/test/command_callback/test_mypy_command_callback.vader index afa9f9af..b9b6ae70 100644 --- a/test/command_callback/test_mypy_command_callback.vader +++ b/test/command_callback/test_mypy_command_callback.vader @@ -75,14 +75,14 @@ Execute(Setting executable to 'pipenv' appends 'run mypy'): let g:ale_python_mypy_executable = 'path/to/pipenv' AssertLinter 'path/to/pipenv', - \ ale#path#BufferCdString(bufnr('')) + \ ale#path#CdString(expand('#' . bufnr('') . ':p:h')) \ . ale#Escape('path/to/pipenv') . ' run mypy' \ . ' --show-column-numbers --shadow-file %s %t %s' Execute(Pipenv is detected when python_mypy_auto_pipenv is set): let g:ale_python_mypy_auto_pipenv = 1 - call ale#test#SetFilename('/testplugin/test/python_fixtures/pipenv/whatever.py') + call ale#test#SetFilename('../python_fixtures/pipenv/whatever.py') AssertLinter 'pipenv', - \ ale#path#BufferCdString(bufnr('')) + \ ale#path#CdString(expand('#' . bufnr('') . ':p:h')) \ . ale#Escape('pipenv') . ' run mypy --show-column-numbers --shadow-file %s %t %s' |