summaryrefslogtreecommitdiff
path: root/test/fixers/test_autopep8_fixer_callback.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-09 22:43:25 +0100
committerw0rp <devw0rp@gmail.com>2017-07-09 22:43:31 +0100
commit6a84605c578ea844a02e429edb38ff2986bc308b (patch)
treea76cd146691fe7c11ae9576162091ab617ed2ba8 /test/fixers/test_autopep8_fixer_callback.vader
parentb50a7318fbf8836b820df9d10e0fc6ffba6bcd1e (diff)
downloadale-6a84605c578ea844a02e429edb38ff2986bc308b.zip
Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter
Diffstat (limited to 'test/fixers/test_autopep8_fixer_callback.vader')
-rw-r--r--test/fixers/test_autopep8_fixer_callback.vader8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/fixers/test_autopep8_fixer_callback.vader b/test/fixers/test_autopep8_fixer_callback.vader
index 3b5b057c..c8c0bd46 100644
--- a/test/fixers/test_autopep8_fixer_callback.vader
+++ b/test/fixers/test_autopep8_fixer_callback.vader
@@ -6,7 +6,7 @@ Before:
let g:ale_python_autopep8_executable = 'xxxinvalid'
let g:ale_python_autopep8_options = ''
- silent! execute 'cd /testplugin/test/command_callback'
+ call ale#test#SetDirectory('/testplugin/test/fixers')
silent cd ..
silent cd command_callback
let g:dir = getcwd()
@@ -14,11 +14,7 @@ Before:
After:
Restore
- 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()
Execute(The autopep8 callback should return the correct default values):
AssertEqual