File: test_pyrex_cython.vader

package info (click to toggle)
vim-ale 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,764 kB
  • sloc: sh: 499; python: 311; perl: 31; makefile: 4; xml: 4; javascript: 1
file content (30 lines) | stat: -rw-r--r-- 944 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
24
25
26
27
28
29
30
Before:
  call ale#assert#SetUpLinterTest('pyrex', 'cython')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default cython command should be correct):
  AssertLinter 'cython', ale#Escape('cython')
  \   . ' --working %s:h'
  \   . ' --include-dir %s:h'
  \   . ' --warning-extra'
  \   . ' --output-file ' . g:ale#util#nul_file . ' %t'

Execute(The cython executable should be configurable):
  let b:ale_pyrex_cython_executable = 'cython_foobar'

  AssertLinter 'cython_foobar', ale#Escape('cython_foobar')
  \   . ' --working %s:h'
  \   . ' --include-dir %s:h'
  \   . ' --warning-extra'
  \   . ' --output-file ' . g:ale#util#nul_file . ' %t'

Execute(Additional cython options should be configurable):
  let b:ale_pyrex_cython_options = '--foobar'

  AssertLinter 'cython', ale#Escape('cython')
  \   . ' --working %s:h'
  \   . ' --include-dir %s:h'
  \   . ' --foobar'
  \   . ' --output-file ' . g:ale#util#nul_file . ' %t'