mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 11:14:32 +08:00
pyimport completions tests
This commit is contained in:
@@ -17,8 +17,12 @@ describe 'pyimport'
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'completion'
|
it 'completion'
|
||||||
" don't know how to test this.
|
" don't know how to test this directly
|
||||||
"execute "Pyimport subproc\<Tab>"
|
"execute "Pyimport subproc\<Tab>"
|
||||||
"Expect g:current_buffer_is_module('subprocess') == 1
|
"Expect g:current_buffer_is_module('subprocess') == 1
|
||||||
|
|
||||||
|
Expect jedi#py_import_completions('subproc', 0, 0) == 'subprocess'
|
||||||
|
Expect jedi#py_import_completions('subprocess', 0, 0) == 'subprocess'
|
||||||
|
Expect jedi#py_import_completions('zip', 0, 0) == "zipfile\nzipimport"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user