File: choose-venv.vim

package info (click to toggle)
python-jedi 0.19.1%2Bds1-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,680 kB
  • sloc: python: 28,783; makefile: 172; ansic: 13
file content (29 lines) | stat: -rw-r--r-- 681 bytes parent folder | download | duplicates (3)
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
source plugin/jedi.vim
source test/_utils.vim

describe 'simple:'
    before
        new
        normal! ifoo
    end

    after
        bd!
    end

    it 'choose'
        Expect g:jedi#environment_path == 'auto'
        Expect bufname('%') == ''

        JediChooseEnvironment
        " A Python executable needs to be a few letters
        Expect len(getline('.')) > 5
        Expect bufname('%') == 'Hit Enter to Choose an Environment'

        execute "normal \<CR>"
        Expect g:jedi#environment_path != 'auto'
        bd " TODO why is this necessary? There seems to be a random buffer.
        Expect bufname('%') == ''
        Expect getline('.') == 'foo'
    end
end