This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/test_python_find_project_root.vader

12 lines
391 B
Text
Raw Permalink Normal View History

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