e149692cc9
subrepo: subdir: "dotfiles/.vim/plugged/ale" merged: "e4b205440" upstream: origin: "https://github.com/dense-analysis/ale.git" branch: "master" commit: "e4b205440" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
19 lines
533 B
Text
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
|