From b14377915b9948454322cd95a86bcc298c03f77a Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 15 Nov 2017 17:21:17 +0000 Subject: Clean up tests to stop people copy and pasting the wrong examples --- test/command_callback/test_pycodestyle_command_callback.vader | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/command_callback/test_pycodestyle_command_callback.vader') diff --git a/test/command_callback/test_pycodestyle_command_callback.vader b/test/command_callback/test_pycodestyle_command_callback.vader index 58aefa20..5b309e19 100644 --- a/test/command_callback/test_pycodestyle_command_callback.vader +++ b/test/command_callback/test_pycodestyle_command_callback.vader @@ -1,13 +1,15 @@ Before: + Save g:ale_python_pycodestyle_executable + Save g:ale_python_pycodestyle_options + Save g:ale_python_pycodestyle_use_global + runtime ale_linters/python/pycodestyle.vim - Save g:ale_python_pycodestyle_executable, - \ g:ale_python_pycodestyle_options, - \ g:ale_python_pycodestyle_use_global After: - call ale#linter#Reset() Restore + call ale#linter#Reset() + Execute(The pycodestyle command callback should return default string): AssertEqual ale#Escape('pycodestyle') . ' -', \ ale_linters#python#pycodestyle#GetCommand(bufnr('')) -- cgit v1.2.3