summaryrefslogtreecommitdiff
path: root/test/test_python_find_project_root.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_python_find_project_root.vader')
-rw-r--r--test/test_python_find_project_root.vader11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_python_find_project_root.vader b/test/test_python_find_project_root.vader
new file mode 100644
index 00000000..176e819a
--- /dev/null
+++ b/test/test_python_find_project_root.vader
@@ -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(''))