mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 19:44:52 +08:00
completion tests
This commit is contained in:
19
test/completions.vim
Normal file
19
test/completions.vim
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
let g:jedi#completions_command = 'X'
|
||||||
|
source plugin/jedi.vim
|
||||||
|
|
||||||
|
describe 'completions'
|
||||||
|
before
|
||||||
|
new
|
||||||
|
set filetype=python
|
||||||
|
end
|
||||||
|
|
||||||
|
it 'import'
|
||||||
|
" X is the completion command
|
||||||
|
normal oimporX
|
||||||
|
Expect getline('.') == 'import'
|
||||||
|
normal! a subproX
|
||||||
|
Expect getline('.') == 'import subprocess'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
" vim: et:ts=4:sw=4
|
||||||
Reference in New Issue
Block a user