1
0
Fork 0
mirror of synced 2024-11-14 21:18:58 -05:00
ultimate-vim/sources_non_forked/ale/test/test_python_pipenv.vader
2022-05-19 21:16:38 +08:00

19 lines
533 B
Text

Before:
call ale#test#SetDirectory('/testplugin/test')
After:
call ale#test#RestoreDirectory()
Execute(ale#python#PipenvPresent is true when a pipenv environment is present):
call ale#test#SetFilename('test-files/python/pipenv/whatever.py')
AssertEqual
\ ale#python#PipenvPresent(bufnr('%')),
\ 1
Execute(ale#python#PipenvPresent is false when no pipenv environment is present):
call ale#test#SetFilename('test-files/python/no_pipenv/whatever.py')
AssertEqual
\ ale#python#PipenvPresent(bufnr('%')),
\ 0