Adding new stuff
This commit is contained in:
parent
131691e143
commit
6c0a9f5b29
718 changed files with 0 additions and 0 deletions
58
vim-plugins/python-mode/t/plugin.vim
Normal file
58
vim-plugins/python-mode/t/plugin.vim
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
describe 'pymode-plugin'
|
||||
|
||||
before
|
||||
source plugin/pymode.vim
|
||||
set filetype=python
|
||||
end
|
||||
|
||||
after
|
||||
bd!
|
||||
end
|
||||
|
||||
it 'pymode options'
|
||||
Expect g:pymode == 1
|
||||
Expect g:pymode_python == 'python'
|
||||
Expect g:pymode_paths == []
|
||||
Expect g:pymode_virtualenv == 1
|
||||
Expect g:pymode_run == 1
|
||||
Expect g:pymode_lint == 1
|
||||
Expect g:pymode_breakpoint == 1
|
||||
Expect g:pymode_doc == 1
|
||||
Expect g:pymode_indent == 1
|
||||
end
|
||||
|
||||
it 'pymode interpreter'
|
||||
PymodePython import vim
|
||||
PymodePython vim.current.buffer.append('test success')
|
||||
Expect getline('$') == 'test success'
|
||||
end
|
||||
|
||||
it 'pymode save'
|
||||
Expect expand('%') == ''
|
||||
Expect pymode#save() == 0
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
describe 'pymode-python-disable'
|
||||
before
|
||||
let g:pymode_python = 'disable'
|
||||
source plugin/pymode.vim
|
||||
set filetype=python
|
||||
end
|
||||
|
||||
after
|
||||
bd!
|
||||
end
|
||||
|
||||
it 'pymode disable python'
|
||||
Expect g:pymode_doc == 0
|
||||
Expect g:pymode_lint == 0
|
||||
Expect g:pymode_path == 0
|
||||
Expect g:pymode_rope == 0
|
||||
Expect g:pymode_run == 0
|
||||
Expect g:pymode_virtualenv == 0
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue