File: test_ale_fix_completion.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 (23 lines) | stat: -rw-r--r-- 981 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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')