1
0
Fork 0
mirror of synced 2024-11-05 08:58:59 -05:00
ultimate-vim/sources_non_forked/ale/test/test_python_poetry.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#poetryPresent is true when a poetry environment is present):
call ale#test#SetFilename('test-files/python/poetry/whatever.py')
AssertEqual
\ ale#python#PoetryPresent(bufnr('%')),
\ 1
Execute(ale#python#poetryPresent is false when no poetry environment is present):
call ale#test#SetFilename('test-files/python/no_poetry/whatever.py')
AssertEqual
\ ale#python#PoetryPresent(bufnr('%')),
\ 0