summaryrefslogtreecommitdiff
path: root/test/linter/test_jedils.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2023-03-07 01:59:05 +0000
committerw0rp <devw0rp@gmail.com>2023-03-07 01:59:11 +0000
commitbb691d6dee1979dffd3f40b7ae055707cebe2e33 (patch)
treeb1e8a7cd4a98792c838f3ff1ab8ead7461cdc21b /test/linter/test_jedils.vader
parent6ae26df22b982e8b19824af96b3e937a0de0bf59 (diff)
downloadale-bb691d6dee1979dffd3f40b7ae055707cebe2e33.zip
#2172 - Expand PATH in the shell for automatic virtualenv
Diffstat (limited to 'test/linter/test_jedils.vader')
-rw-r--r--test/linter/test_jedils.vader3
1 files changed, 2 insertions, 1 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')