mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
fix a few jedi-vim tests that have either broken due to the new jedi version or because they were wrong.
This commit is contained in:
@@ -23,7 +23,7 @@ describe 'documentation docstrings'
|
|||||||
|
|
||||||
it 'no documentation'
|
it 'no documentation'
|
||||||
put = 'x = 2'
|
put = 'x = 2'
|
||||||
normal G0K
|
normal o<ESC>GK
|
||||||
Expect bufname('%') == ''
|
Expect bufname('%') == ''
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ describe 'signatures'
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'simple'
|
it 'simple'
|
||||||
normal ostr(
|
normal oabs(
|
||||||
" equals doautocmd CursorMovedI
|
" equals doautocmd CursorMovedI
|
||||||
Python jedi_vim.show_call_signatures()
|
Python jedi_vim.show_call_signatures()
|
||||||
|
|
||||||
Expect getline(1) == '≡jedi=0, ≡ (*obj*) ≡jedi≡'
|
Expect getline(1) == '≡jedi=0, ≡ (*number*) ≡jedi≡'
|
||||||
|
|
||||||
doautocmd InsertLeave
|
doautocmd InsertLeave
|
||||||
Expect getline(1) == ''
|
Expect getline(1) == ''
|
||||||
@@ -28,12 +28,12 @@ describe 'signatures'
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'signatures disabled'
|
it 'signatures disabled'
|
||||||
let g:jedi#show_signatures = 0
|
let g:jedi#show_call_signatures = 0
|
||||||
|
|
||||||
normal ostr(
|
normal ostr(
|
||||||
Python jedi_vim.show_call_signatures()
|
Python jedi_vim.show_call_signatures()
|
||||||
Expect getline(1, '$') == ['', 'str( ']
|
Expect getline(1, '$') == ['', 'str( ']
|
||||||
|
|
||||||
let g:jedi#show_signatures = 1
|
let g:jedi#show_call_signatures = 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user