1
0
Fork 0
mirror of synced 2024-11-15 13:38:58 -05:00
ultimate-vim/sources_non_forked/ale/test/test_python_pipenv.vader

20 lines
533 B
Text
Raw Normal View History

2022-05-19 09:16:38 -04:00
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