summaryrefslogtreecommitdiff
path: root/test/test_python_find_project_root.vader
blob: e323c8668bdec531f8d475791d6f0d54fb58a660 (plain)
1
2
3
4
5
6
7
8
9
10
11
Before:
  call ale#test#SetDirectory('/testplugin/test')

After:
  call ale#test#RestoreDirectory()

Execute(Detect root of Python project with .flake8 correctly):
  call ale#test#SetFilename('test-files/python/python-package-project/package-name/module.py')
  AssertEqual
  \ ale#path#Simplify(g:dir . '/test-files/python/python-package-project'),
  \ ale#python#FindProjectRoot(bufnr(''))