mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-10 14:31:52 +08:00
Add a test to ensure $VIRTUAL_ENV is respected.
This commit is contained in:
12
test/test_python_virtualenv.vader
Normal file
12
test/test_python_virtualenv.vader
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
Before:
|
||||||
|
Save $VIRTUAL_ENV
|
||||||
|
let $VIRTUAL_ENV = "/opt/example/"
|
||||||
|
|
||||||
|
After:
|
||||||
|
Restore
|
||||||
|
|
||||||
|
Execute(ale#python#FindVirtualenv falls back to $VIRTUAL_ENV when no directories match):
|
||||||
|
AssertEqual
|
||||||
|
\ ale#python#FindVirtualenv(bufnr('%')),
|
||||||
|
\ '/opt/example/',
|
||||||
|
\ 'Expected VIRTUAL_ENV environment variable to be used, but it was not'
|
||||||
Reference in New Issue
Block a user