Add a test to ensure $VIRTUAL_ENV is respected.

This commit is contained in:
Bailey Stoner 2017-10-11 13:42:38 -07:00
parent 3859ac0c9b
commit 620ec32da1
No known key found for this signature in database
GPG Key ID: A9F34173C563B7A5

View 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'