summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-02-12 21:08:31 +0000
committerGitHub <noreply@github.com>2019-02-12 21:08:31 +0000
commit690b1a5bb1774226b0f9c121907b065775910925 (patch)
tree1681d8d10c8234b97d584e1dacd15b9f2b48b53e /test
parent926ad47a49d74c910c610d4a9cedd5c4838d679d (diff)
parenta6caa85a58d81aa4cd47172979a9c94aa8a902c6 (diff)
downloadale-690b1a5bb1774226b0f9c121907b065775910925.zip
Merge pull request #2291 from kevinoid/pylama-no-temp
pylama: Use %s instead of %t
Diffstat (limited to 'test')
-rw-r--r--test/command_callback/test_pylama_command_callback.vader2
-rw-r--r--test/handler/test_pylama_handler.vader19
2 files changed, 1 insertions, 20 deletions
diff --git a/test/command_callback/test_pylama_command_callback.vader b/test/command_callback/test_pylama_command_callback.vader
index a24b55f8..417cb5c9 100644
--- a/test/command_callback/test_pylama_command_callback.vader
+++ b/test/command_callback/test_pylama_command_callback.vader
@@ -3,7 +3,7 @@ Before:
call ale#test#SetFilename('test.py')
let b:bin_dir = has('win32') ? 'Scripts' : 'bin'
- let b:command_tail = ' %t'
+ let b:command_tail = ' %s'
After:
unlet! b:bin_dir
diff --git a/test/handler/test_pylama_handler.vader b/test/handler/test_pylama_handler.vader
index 854765db..d21c65d3 100644
--- a/test/handler/test_pylama_handler.vader
+++ b/test/handler/test_pylama_handler.vader
@@ -191,22 +191,3 @@ Execute(The pylama handler should handle message codes followed by a colon):
\ ale_linters#python#pylama#Handle(bufnr(''), [
\ 'index.py:31:1: E800: Found commented out code: # needs_sphinx = ''1.0'' [eradicate]',
\ ])
-
-" The directory created for %t may not comply with pylint module name config.
-" This should not be reported to users.
-Execute(The pylama handler should ignore C0103 from temp dir, not others):
- AssertEqual
- \ [
- \ {
- \ 'lnum': 29,
- \ 'col': 0,
- \ 'code': 'C0103',
- \ 'type': 'W',
- \ 'sub_type': 'style',
- \ 'text': 'Constant name "badname" doesn''t conform to UPPER_CASE naming style [pylint]',
- \ },
- \ ],
- \ ale_linters#python#pylama#Handle(bufnr(''), [
- \ '../../../../tmp/vmynR33/456/__init__.py:1:0: C0103 Module name "456" doesn''t conform to snake_case naming style [pylint]',
- \ '../../../../tmp/vmynR33/456/__init__.py:29:0: C0103 Constant name "badname" doesn''t conform to UPPER_CASE naming style [pylint]',
- \ ])