forked from python-mode/python-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.vim
More file actions
58 lines (47 loc) · 1.22 KB
/
plugin.vim
File metadata and controls
58 lines (47 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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