mirror of
https://github.com/dense-analysis/ale
synced 2024-12-24 15:13:02 +00:00
13 lines
329 B
Plaintext
13 lines
329 B
Plaintext
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'
|