-
-
Notifications
You must be signed in to change notification settings - Fork 768
Expand file tree
/
Copy pathvirtualenv.vim
More file actions
28 lines (23 loc) · 867 Bytes
/
virtualenv.vim
File metadata and controls
28 lines (23 loc) · 867 Bytes
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
describe 'pymode-virtualenv'
before
source plugin/pymode.vim
set filetype=python
end
after
bd!
end
" TODO: How can we mock the virtualenv activation to check that the
" proper path is set to pymode_virtualenv_enabled? Right now, the
" python function enable_virtualenv gets called but fails when trying
" to actually activate so the env.let never gets called
it 'accepts relative paths'
call pymode#virtualenv#activate("sample/relative/path")
" Our path variable is the path argument
Expect g:pymode_virtualenv_path == "sample/relative/path"
end
it 'accepts absolute paths'
call pymode#virtualenv#activate("/sample/absolute/path")
" Our path variable is the path argument
Expect g:pymode_virtualenv_path == "/sample/absolute/path"
end
end