From fb1eaa611e1212e6f5f002cbf814ca57d953ca8e Mon Sep 17 00:00:00 2001 From: Jacob Niehus Date: Mon, 20 Oct 2014 16:39:36 -0700 Subject: [PATCH] Add vspec tests for cmdline call signatures --- test/signatures.vim | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/test/signatures.vim b/test/signatures.vim index e47f67d..30f3b92 100644 --- a/test/signatures.vim +++ b/test/signatures.vim @@ -36,4 +36,31 @@ describe 'signatures' let g:jedi#show_call_signatures = 1 end + + it 'command line simple' + let g:jedi#show_call_signatures = 2 + call jedi#configure_call_signatures() + + normal oabs( + redir => msg + Python jedi_vim.show_call_signatures() + redir END + Expect msg == "\nabs(number)" + + redir => msg + doautocmd InsertLeave + redir END + Expect msg == "\n\n" + end + + it 'command line no signature' + let g:jedi#show_call_signatures = 2 + call jedi#configure_call_signatures() + + normal ostr + redir => msg + Python jedi_vim.show_call_signatures() + redir END + Expect msg == "\n" + end end