mirror of
https://github.com/dense-analysis/ale
synced 2025-02-21 23:17:06 +00:00
Test for Python project root directory
Add test files and a new test suite for detecting a Python project's root directory.
This commit is contained in:
parent
652d991077
commit
57b9d8bc0e
11
test/test_python_find_project_root.vader
Normal file
11
test/test_python_find_project_root.vader
Normal file
@ -0,0 +1,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(''))
|
Loading…
Reference in New Issue
Block a user