summaryrefslogtreecommitdiff
path: root/test/test_python_pipenv.vader
blob: 041e28743dc72b58b930cd1391c2238bb5a7f2a3 (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 when no pipenv environment is present):
  call ale#test#SetFilename('test-files/python/no_pipenv/whatever.py')

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