forked from VimPlug/jedi-vim
Fix some call signature tests
This commit is contained in:
@@ -2,7 +2,7 @@ let mapleader = '\'
|
||||
source plugin/jedi.vim
|
||||
source test/_utils.vim
|
||||
|
||||
describe 'goto simple'
|
||||
describe 'goto simple:'
|
||||
before
|
||||
new
|
||||
set filetype=python
|
||||
@@ -45,7 +45,7 @@ describe 'goto simple'
|
||||
end
|
||||
|
||||
|
||||
describe 'goto with tabs'
|
||||
describe 'goto with tabs:'
|
||||
before
|
||||
set filetype=python
|
||||
let g:jedi#use_tabs_not_buffers = 1
|
||||
|
||||
@@ -41,7 +41,7 @@ describe 'signatures'
|
||||
doautocmd CursorHoldI
|
||||
noautocmd normal istr()
|
||||
doautocmd CursorHoldI
|
||||
Expect getline(1) == '?!?jedi=0, ?!? (*_*object*_*) ?!?jedi?!?'
|
||||
Expect getline(1) == '?!?jedi=0, ?!? (*_*o: bytes*_*, encoding: str = ..., errors: str = ...) ?!?jedi?!?'
|
||||
end
|
||||
|
||||
it 'no signature'
|
||||
@@ -68,7 +68,7 @@ describe 'signatures'
|
||||
redir => msg
|
||||
Python jedi_vim.show_call_signatures()
|
||||
redir END
|
||||
Expect msg == "\nstr(object)"
|
||||
Expect msg == "\nstr((o: bytes, o: object = ...), …)"
|
||||
|
||||
redir => msg
|
||||
doautocmd InsertLeave
|
||||
|
||||
Reference in New Issue
Block a user