mirror of
https://github.com/dense-analysis/ale
synced 2024-12-30 01:52:13 +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'
|