diff options
author | w0rp <w0rp@users.noreply.github.com> | 2019-05-21 00:15:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 00:15:12 +0100 |
commit | 89db85121c001fc60787647f012978a2328816a5 (patch) | |
tree | 7a0fccc359896108d3a2e9e2f6c05889689dbdd9 /test | |
parent | 26e5948617e4aad8612bfb0ac958a5f483898716 (diff) | |
parent | 57736cdcccf46e0d6252b556e9a2b2a56a634754 (diff) | |
download | ale-89db85121c001fc60787647f012978a2328816a5.zip |
Merge pull request #2502 from ericvw/flake8-config
Change Python project root dir detection for flake8 configuration
Diffstat (limited to 'test')
-rw-r--r-- | test/python-test-files/python-package-project/.flake8 | 0 | ||||
-rw-r--r-- | test/python-test-files/python-package-project/package-name/module.py | 0 | ||||
-rw-r--r-- | test/test_python_find_project_root.vader | 11 |
3 files changed, 11 insertions, 0 deletions
diff --git a/test/python-test-files/python-package-project/.flake8 b/test/python-test-files/python-package-project/.flake8 new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/python-test-files/python-package-project/.flake8 diff --git a/test/python-test-files/python-package-project/package-name/module.py b/test/python-test-files/python-package-project/package-name/module.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/python-test-files/python-package-project/package-name/module.py 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('')) |