summaryrefslogtreecommitdiff
path: root/test/linter/test_pylsp.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2023-09-16 22:22:01 +0100
committerw0rp <devw0rp@gmail.com>2023-09-16 22:23:30 +0100
commitae1d0515049ed135878672e06b51b083f5ae384d (patch)
tree1556645edaf786bc934be9cc8cc63408e65054d4 /test/linter/test_pylsp.vader
parent4b11cf21dc8406b579b89e50ae3f08ef2c0856e1 (diff)
downloadale-ae1d0515049ed135878672e06b51b083f5ae384d.zip
#4454 Clean up more tests and code
* Remove some tests we no longer need * Delete blocks of redundant code * Compress some tests together to simplify them * Remove a little code for ancient linter versions * Escape more executables we didn't escape before * Rename a deno option that didn't match our conventions
Diffstat (limited to 'test/linter/test_pylsp.vader')
-rw-r--r--test/linter/test_pylsp.vader11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/linter/test_pylsp.vader b/test/linter/test_pylsp.vader
index 580cec17..c46c53a4 100644
--- a/test/linter/test_pylsp.vader
+++ b/test/linter/test_pylsp.vader
@@ -13,20 +13,17 @@ After:
call ale#test#SetFilename('..')
call ale#assert#TearDownLinterTest()
-Execute(The pylsp command callback should return default string):
+Execute(The default pylsp command should be correct):
call ale#test#SetFilename('./foo.py')
AssertLinter 'pylsp', ale#Escape('pylsp')
-Execute(The pylsp executable should be configurable):
+Execute(The pylsp command and executable should be configurable):
let g:ale_python_pylsp_executable = '~/.local/bin/pylsp'
-
- AssertLinter '~/.local/bin/pylsp' , ale#Escape('~/.local/bin/pylsp')
-
-Execute(The pylsp command callback should let you set options):
let g:ale_python_pylsp_options = '--some-option'
- AssertLinter 'pylsp', ale#Escape('pylsp') . ' --some-option'
+ AssertLinter '~/.local/bin/pylsp' , ale#Escape('~/.local/bin/pylsp')
+ \ . ' --some-option'
Execute(The cwd and project root should be detected correctly):
call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py')