summaryrefslogtreecommitdiff
path: root/test/test_python_poetry.vader
blob: 8197b7860f3246669ce96e9ff397d29d7928fac9 (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#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