Merge pull request #993 from blueyed/cover-jedi_debug_info

tests: cover jedi_debug_info
This commit is contained in:
Daniel Hahler
2020-02-03 01:43:09 +01:00
committed by GitHub
2 changed files with 14 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ install:
script:
- make --keep-going "$ENV" BUILD_VIRTUAL_ENV=$VIRTUAL_ENV
after_success:
after_script:
- |
if [ "$ENV" = "test_coverage" ]; then
coverage xml

View File

@@ -0,0 +1,13 @@
source plugin/jedi.vim
describe 'JediDebugInfo'
it 'works'
redir @a | JediDebugInfo | redir END
let output = split(@a, '\n')
Expect output[0] == 'You should run this in a buffer with filetype "python".'
Expect output[1] == '#### Jedi-vim debug information'
Expect output[-1] == '</details>'
end
end
" vim: et:ts=4:sw=4