install.fairie/dotfiles/.vim/plugged/ale/test/fix/test_ale_fix_completion.vader
Git E2E Dev Test Username e149692cc9 git subrepo clone https://github.com/dense-analysis/ale.git ./dotfiles/.vim/plugged/ale
subrepo:
  subdir:   "dotfiles/.vim/plugged/ale"
  merged:   "e4b205440"
upstream:
  origin:   "https://github.com/dense-analysis/ale.git"
  branch:   "master"
  commit:   "e4b205440"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:09 -04:00

23 lines
981 B
Text

Execute (List of available fixers is empty):
call ale#fix#registry#Clear()
Then (List of applicable fixers for python file is empty):
AssertEqual [], ale#fix#registry#GetApplicableFixers('python')
Execute (Add ruby fixer):
call ale#fix#registry#Add('ruby_fixer', 'fixer_fun', ['ruby'], 'ruby fixer')
Then (List of applicable fixers for python file is still empty):
AssertEqual [], ale#fix#registry#GetApplicableFixers('python')
Execute (Add generic fixer):
call ale#fix#registry#Add('generic_fixer', 'fixer_fun', [], 'generic fixer')
Then (Generic fixer should be returned as applicable for python file):
AssertEqual ['generic_fixer'], ale#fix#registry#GetApplicableFixers('python')
Execute (Add python fixer):
call ale#fix#registry#Add('python_fixer', 'fixer_func', ['python'], 'python fixer')
Then (List of fixers should contain both generic and python fixers):
AssertEqual ['generic_fixer', 'python_fixer'], ale#fix#registry#GetApplicableFixers('python')