ale/test/test_python_find_project_root.vader
Eric N. Vander Weele 57b9d8bc0e Test for Python project root directory
Add test files and a new test suite for detecting a Python project's
root directory.
2019-05-19 09:51:26 -04:00

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