This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/test_python_pipenv.vader

14 lines
467 B
Text
Raw Permalink Normal View History

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