forked from VimPlug/jedi-vim
Add tests for smart_auto_mappings
This commit is contained in:
1 parent
0703494188
commit
91c2a031df
1 file changed
+11
@@ -11,6 +11,17 @@ describe 'completions'
|
||||
bd!
|
||||
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'
|
||||
" X is the completion command
|
||||
normal oimporX
|
||||
|
||||
Reference in new issue
Block a user