Adding new stuff
This commit is contained in:
parent
e2fdf4c3b9
commit
3d621f7993
451 changed files with 6 additions and 1 deletions
|
|
@ -1,58 +0,0 @@
|
|||
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