mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 11:14:32 +08:00
Add tests for smart_auto_mappings
This commit is contained in:
@@ -11,6 +11,17 @@ describe 'completions'
|
|||||||
bd!
|
bd!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'smart import'
|
||||||
|
exec "normal ifrom os "
|
||||||
|
Expect getline('.') == 'from os import '
|
||||||
|
end
|
||||||
|
|
||||||
|
it 'no smart import after space'
|
||||||
|
exec "normal! ifrom os "
|
||||||
|
exec "normal a "
|
||||||
|
Expect getline('.') == 'from os '
|
||||||
|
end
|
||||||
|
|
||||||
it 'import'
|
it 'import'
|
||||||
" X is the completion command
|
" X is the completion command
|
||||||
normal oimporX
|
normal oimporX
|
||||||
|
|||||||
Reference in New Issue
Block a user