mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 03:04:30 +08:00
documentation tests
This commit is contained in:
20
test/documentation.vim
Normal file
20
test/documentation.vim
Normal file
@@ -0,0 +1,20 @@
|
||||
source plugin/jedi.vim
|
||||
|
||||
describe 'documentation_docstrings'
|
||||
before
|
||||
set filetype=python
|
||||
end
|
||||
|
||||
it 'simple'
|
||||
put = 'ImportError'
|
||||
normal GK
|
||||
Expect bufname('%') == "'__doc__'"
|
||||
Expect &filetype == 'rst'
|
||||
let content = join(getline(1,'$'), "\n")
|
||||
Expect stridx(content, "Import can't find module") > 0
|
||||
normal K
|
||||
Expect bufname('%') == ''
|
||||
end
|
||||
end
|
||||
|
||||
" vim: et:ts=4:sw=4
|
||||
Reference in New Issue
Block a user