summaryrefslogtreecommitdiff
path: root/test/test_python_find_project_root.vader
blob: 176e819addd62838d43943fdf90a4da043210d97 (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('python-test-files/python-package-project/package-name/module.py')
  AssertEqual
  \ ale#path#Simplify(g:dir . '/python-test-files/python-package-project'),
  \ ale#python#FindProjectRoot(bufnr(''))