ale/test/test_python_find_project_ro...

12 lines
391 B
Plaintext

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(''))