mirror of
https://github.com/dense-analysis/ale
synced 2024-12-22 14:13:12 +00:00
14 lines
467 B
Plaintext
14 lines
467 B
Plaintext
|
Execute(ale#python#PipenvPresent is true when a pipenv environment is present):
|
||
|
call ale#test#SetFilename('/testplugin/test/python_fixtures/pipenv/whatever.py')
|
||
|
|
||
|
AssertEqual
|
||
|
\ ale#python#PipenvPresent(bufnr('%')),
|
||
|
\ 1
|
||
|
|
||
|
Execute(ale#python#PipenvPresent is false true when no pipenv environment is present):
|
||
|
call ale#test#SetFilename('/testplugin/test/python_fixtures/no_pipenv/whatever.py')
|
||
|
|
||
|
AssertEqual
|
||
|
\ ale#python#PipenvPresent(bufnr('%')),
|
||
|
\ 0
|