Debian Codegraph @

vim/test/vspec/choose-venv.vim

raw
1 source plugin/jedi.vim
2 source test/_utils.vim
3
4 describe 'simple:'
5 before
6 new
7 normal! ifoo
8 end
9
10 after
11 bd!
12 end
13
14 it 'choose'
15 Expect g:jedi#environment_path == 'auto'
16 Expect bufname('%') == ''
17
18 JediChooseEnvironment
19 " A Python executable needs to be a few letters
20 Expect len(getline('.')) > 5
21 Expect bufname('%') == 'Hit Enter to Choose an Environment'
22
23 execute "normal \<CR>"
24 Expect g:jedi#environment_path != 'auto'
25 bd " TODO why is this necessary? There seems to be a random buffer.
26 Expect bufname('%') == ''
27 Expect getline('.') == 'foo'
28 end
29 end