mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
more completions tests
This commit is contained in:
@@ -7,13 +7,29 @@ describe 'completions'
|
|||||||
set filetype=python
|
set filetype=python
|
||||||
end
|
end
|
||||||
|
|
||||||
|
after
|
||||||
|
close!
|
||||||
|
end
|
||||||
|
|
||||||
it 'import'
|
it 'import'
|
||||||
" X is the completion command
|
" X is the completion command
|
||||||
normal oimporX
|
normal oimporX
|
||||||
Expect getline('.') == 'import'
|
Expect getline('.') == 'import'
|
||||||
normal! a subproX
|
normal a subproX
|
||||||
Expect getline('.') == 'import subprocess'
|
Expect getline('.') == 'import subprocess'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'exception'
|
||||||
|
normal oIndentationErrX
|
||||||
|
Expect getline('.') == 'IndentationError'
|
||||||
|
normal a().filenaX
|
||||||
|
Expect getline('.') == 'IndentationError().filename'
|
||||||
|
end
|
||||||
|
|
||||||
|
it 'typing'
|
||||||
|
normal oraisX ImpXErrX()
|
||||||
|
Expect getline('.') == 'raise ImportError()'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
" vim: et:ts=4:sw=4
|
" vim: et:ts=4:sw=4
|
||||||
|
|||||||
Reference in New Issue
Block a user