Add a test to ensure $VIRTUAL_ENV is respected.
This commit is contained in:
parent
3859ac0c9b
commit
620ec32da1
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'
|
Loading…
Reference in New Issue
Block a user