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