summaryrefslogtreecommitdiff
path: root/test/command_callback/test_pycodestyle_command_callback.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-15 17:21:17 +0000
committerw0rp <devw0rp@gmail.com>2017-11-15 17:21:17 +0000
commitb14377915b9948454322cd95a86bcc298c03f77a (patch)
treefb67e7281a8778bd4a50676a2be7fb11fd846d54 /test/command_callback/test_pycodestyle_command_callback.vader
parente721f851b41b8f6f31067ae2a137019e1cb5546c (diff)
downloadale-b14377915b9948454322cd95a86bcc298c03f77a.zip
Clean up tests to stop people copy and pasting the wrong examples
Diffstat (limited to 'test/command_callback/test_pycodestyle_command_callback.vader')
-rw-r--r--test/command_callback/test_pycodestyle_command_callback.vader10
1 files changed, 6 insertions, 4 deletions
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(''))