2019-05-18 13:42:19 +00:00
|
|
|
Before:
|
|
|
|
call ale#test#SetDirectory('/testplugin/test')
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#test#RestoreDirectory()
|
|
|
|
|
|
|
|
Execute(Detect root of Python project with .flake8 correctly):
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('test-files/python/python-package-project/package-name/module.py')
|
2019-05-18 13:42:19 +00:00
|
|
|
AssertEqual
|
2021-03-20 22:11:22 +00:00
|
|
|
\ ale#path#Simplify(g:dir . '/test-files/python/python-package-project'),
|
2019-05-18 13:42:19 +00:00
|
|
|
\ ale#python#FindProjectRoot(bufnr(''))
|