source plugin/jedi.vim

describe 'documentation docstrings'
    before
        set filetype=python
    end

    after
        bd!
        bd!
    end

    it 'simple'
        put = 'ImportError'
        normal GK
        Expect bufname('%') == "'__doc__'"
        Expect &filetype == 'rst'
        let content = join(getline(1,'$'), "\n")
        Expect stridx(content, "Import can't find module") > 0
        normal K
        Expect bufname('%') == ''
    end

    it 'no documentation'
        put = 'x = 2'
        normal o<ESC>GK
        Expect bufname('%') == ''
    end
end

" vim: et:ts=4:sw=4

source plugin/jedi.vim

describe 'documentation docstrings'
    before
        bd!
        set filetype=python
    end

    after
        bd!
        bd!
    end

    it 'simple'
        put = 'ImportError'
        normal GK
        Expect bufname('%') == "'__doc__'"
        Expect &filetype == 'rst'
        let content = join(getline(1,'$'), "\n")
        Expect stridx(content, "Import can't find module") > 0
        normal K
        Expect bufname('%') == ''
    end

    it 'no documentation'
        put = 'x = 2'
        normal o<ESC>GK
        Expect bufname('%') == ''
    end
end

" vim: et:ts=4:sw=4

Test if this helps fixing the online tests that are not working.
Test if this helps fixing the online tests that are not working.

jmartiuk5/jedi-vim,maxamillion/jedi-vim,itchyny/jedi-vim,FBruynbroeck/jedi-vim,aliev/jedi-vim,wilywampa/jedi-vim,genzj/jedi-vim,clavery/jedi-vim,pze/jedi-vim,davidhalter/jedi-vim