File: test_python_find_project_root.vader

package info (click to toggle)
vim-ale 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,408 kB
  • sloc: sh: 497; python: 311; perl: 31; makefile: 4; javascript: 1
file content (11 lines) | stat: -rw-r--r-- 391 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
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('test-files/python/python-package-project/package-name/module.py')
  AssertEqual
  \ ale#path#Simplify(g:dir . '/test-files/python/python-package-project'),
  \ ale#python#FindProjectRoot(bufnr(''))