From 6a84605c578ea844a02e429edb38ff2986bc308b Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 9 Jul 2017 22:43:25 +0100 Subject: Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter --- test/command_callback/test_mypy_command_callback.vader | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'test/command_callback/test_mypy_command_callback.vader') diff --git a/test/command_callback/test_mypy_command_callback.vader b/test/command_callback/test_mypy_command_callback.vader index 19141805..8df7193d 100644 --- a/test/command_callback/test_mypy_command_callback.vader +++ b/test/command_callback/test_mypy_command_callback.vader @@ -1,15 +1,9 @@ Before: runtime ale_linters/python/mypy.vim - silent! execute 'cd /testplugin/test/command_callback' - let g:dir = getcwd() + call ale#test#SetDirectory('/testplugin/test/command_callback') After: - silent execute 'cd ' . fnameescape(g:dir) - " Set the file to something else, - " or we'll cause issues when running other tests - silent file 'dummy.py' - unlet! g:dir - + call ale#test#RestoreDirectory() call ale#linter#Reset() let g:ale_python_mypy_executable = 'mypy' let g:ale_python_mypy_options = '' -- cgit v1.2.3