summaryrefslogtreecommitdiff
path: root/test/test_python_pipenv.vader
blob: 8b1e9ab0b8b8944cbedf2d425533a8665d3eef87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 true when no pipenv environment is present):
  call ale#test#SetFilename('test-files/python/no_pipenv/whatever.py')

  AssertEqual
  \  ale#python#PipenvPresent(bufnr('%')),
  \  0