summaryrefslogtreecommitdiff
path: root/test/linter
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter')
-rw-r--r--test/linter/test_jedils.vader3
-rw-r--r--test/linter/test_pylsp.vader3
-rw-r--r--test/linter/test_pyright.vader3
3 files changed, 6 insertions, 3 deletions
diff --git a/test/linter/test_jedils.vader b/test/linter/test_jedils.vader
index 3d52b1b5..5ffd22d8 100644
--- a/test/linter/test_jedils.vader
+++ b/test/linter/test_jedils.vader
@@ -31,8 +31,9 @@ Execute(virtualenv vars should be used when ale_python_auto_virtualenv = 1):
let b:sep = has('win32') ? ';' : ':'
let b:executable = ale#path#Simplify(b:venv_bin . '/jedi-language-server')
- AssertLinter b:executable, ale#Env('PATH', b:venv_bin . b:sep . $PATH)
+ AssertLinter b:executable, ale#python#AutoVirtualenvEnvString(bufnr(''))
\ . ale#Escape(b:executable)
+ Assert !empty(ale#python#AutoVirtualenvEnvString(bufnr('')))
Execute(You should be able to override the jedi-language-server virtualenv lookup):
call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py')
diff --git a/test/linter/test_pylsp.vader b/test/linter/test_pylsp.vader
index 1bc56c73..580cec17 100644
--- a/test/linter/test_pylsp.vader
+++ b/test/linter/test_pylsp.vader
@@ -52,8 +52,9 @@ Execute(virtualenv vars should be used when ale_python_auto_virtualenv = 1):
let b:sep = has('win32') ? ';' : ':'
let b:executable = ale#path#Simplify(b:venv_bin . '/pylsp')
- AssertLinter b:executable, ale#Env('PATH', b:venv_bin . b:sep . $PATH)
+ AssertLinter b:executable, ale#python#AutoVirtualenvEnvString(bufnr(''))
\ . ale#Escape(b:executable)
+ Assert !empty(ale#python#AutoVirtualenvEnvString(bufnr('')))
Execute(You should be able to override the pylsp virtualenv lookup):
call ale#test#SetFilename('../test-files/python/with_virtualenv/subdir/foo/bar.py')
diff --git a/test/linter/test_pyright.vader b/test/linter/test_pyright.vader
index c99877ab..6730d135 100644
--- a/test/linter/test_pyright.vader
+++ b/test/linter/test_pyright.vader
@@ -144,8 +144,9 @@ Execute(virtualenv vars should be used when ale_python_auto_virtualenv = 1):
let b:sep = has('win32') ? ';' : ':'
let b:executable = ale#path#Simplify(b:venv_bin . '/pyright-langserver')
- AssertLinter b:executable, ale#Env('PATH', b:venv_bin . b:sep . $PATH)
+ AssertLinter b:executable, ale#python#AutoVirtualenvEnvString(bufnr(''))
\ . ale#Escape(b:executable) . ' --stdio'
+ Assert !empty(ale#python#AutoVirtualenvEnvString(bufnr('')))
Execute(Setting executable to 'pipenv' should append 'run pyright'):
call ale#test#SetFilename('../test-files')