mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 03:24:47 +08:00
test titles don't need underscores
This commit is contained in:
@@ -2,7 +2,7 @@ let mapleader = '\'
|
|||||||
source plugin/jedi.vim
|
source plugin/jedi.vim
|
||||||
source test/utils.vim
|
source test/utils.vim
|
||||||
|
|
||||||
describe 'goto_simple'
|
describe 'goto simple'
|
||||||
before
|
before
|
||||||
new " open a new split
|
new " open a new split
|
||||||
set filetype=python
|
set filetype=python
|
||||||
@@ -20,13 +20,12 @@ describe 'goto_simple'
|
|||||||
bd!
|
bd!
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'goto_definitions'
|
it 'goto definitions'
|
||||||
silent normal \d
|
silent normal \d
|
||||||
Expect line('.') == 1
|
Expect line('.') == 1
|
||||||
"Expect col('.') == 5 " not working yet.
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'goto_assignments'
|
it 'goto assignments'
|
||||||
silent normal \g
|
silent normal \g
|
||||||
Expect line('.') == 2
|
Expect line('.') == 2
|
||||||
Expect col('.') == 1
|
Expect col('.') == 1
|
||||||
@@ -45,7 +44,7 @@ describe 'goto_simple'
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
describe 'goto_with_tabs'
|
describe 'goto with tabs'
|
||||||
before
|
before
|
||||||
set filetype=python
|
set filetype=python
|
||||||
let g:jedi#use_tabs_not_buffers = 1
|
let g:jedi#use_tabs_not_buffers = 1
|
||||||
@@ -56,7 +55,7 @@ describe 'goto_with_tabs'
|
|||||||
bd!
|
bd!
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'follow_import'
|
it 'follow import'
|
||||||
put = ['import subprocess', 'subprocess']
|
put = ['import subprocess', 'subprocess']
|
||||||
silent normal G\g
|
silent normal G\g
|
||||||
Expect getline('.') == 'import subprocess'
|
Expect getline('.') == 'import subprocess'
|
||||||
@@ -73,7 +72,7 @@ describe 'goto_with_tabs'
|
|||||||
Expect bufname('%') == ''
|
Expect bufname('%') == ''
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'multi_definitions'
|
it 'multi definitions'
|
||||||
" This used to behave differently. Now we don't have any real multi
|
" This used to behave differently. Now we don't have any real multi
|
||||||
" definitions.
|
" definitions.
|
||||||
|
|
||||||
@@ -96,7 +95,7 @@ describe 'goto_with_tabs'
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
describe 'goto_with_buffers'
|
describe 'goto with buffers'
|
||||||
before
|
before
|
||||||
set filetype=python
|
set filetype=python
|
||||||
let g:jedi#use_tabs_not_buffers = 0
|
let g:jedi#use_tabs_not_buffers = 0
|
||||||
@@ -108,7 +107,7 @@ describe 'goto_with_buffers'
|
|||||||
set nohidden
|
set nohidden
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'no_new_tabs'
|
it 'no new tabs'
|
||||||
put = ['import os']
|
put = ['import os']
|
||||||
normal G$
|
normal G$
|
||||||
call jedi#goto_assignments()
|
call jedi#goto_assignments()
|
||||||
@@ -125,7 +124,7 @@ describe 'goto_with_buffers'
|
|||||||
Expect col('.') == 1
|
Expect col('.') == 1
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'multi_definitions'
|
it 'multi definitions'
|
||||||
" set hidden
|
" set hidden
|
||||||
" put = ['import tokenize']
|
" put = ['import tokenize']
|
||||||
" silent normal G$\d
|
" silent normal G$\d
|
||||||
@@ -147,7 +146,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
describe 'goto_with_splits'
|
describe 'goto with splits'
|
||||||
before
|
before
|
||||||
set filetype=python
|
set filetype=python
|
||||||
let g:jedi#use_splits_not_buffers = 'left'
|
let g:jedi#use_splits_not_buffers = 'left'
|
||||||
@@ -158,7 +157,7 @@ describe 'goto_with_splits'
|
|||||||
bd!
|
bd!
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'follow_import'
|
it 'follow import'
|
||||||
put = ['import subprocess', 'subprocess']
|
put = ['import subprocess', 'subprocess']
|
||||||
silent normal G\g
|
silent normal G\g
|
||||||
Expect getline('.') == 'import subprocess'
|
Expect getline('.') == 'import subprocess'
|
||||||
@@ -177,7 +176,7 @@ describe 'goto_with_splits'
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
describe 'goto_wildignore'
|
describe 'goto wildignore'
|
||||||
before
|
before
|
||||||
set filetype=python
|
set filetype=python
|
||||||
set wildignore=*,with\ spaces,*.pyc
|
set wildignore=*,with\ spaces,*.pyc
|
||||||
@@ -198,14 +197,14 @@ describe 'goto_wildignore'
|
|||||||
set wildignore&vim
|
set wildignore&vim
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'restores_wildignore'
|
it 'restores wildignore'
|
||||||
let before = &wildignore
|
let before = &wildignore
|
||||||
call jedi#goto()
|
call jedi#goto()
|
||||||
Expect getline('.') =~ 'Popen'
|
Expect getline('.') =~ 'Popen'
|
||||||
Expect &wildignore == before
|
Expect &wildignore == before
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'not_using_tagstack'
|
it 'not using tagstack'
|
||||||
let g:jedi#use_tag_stack = 0
|
let g:jedi#use_tag_stack = 0
|
||||||
call jedi#goto()
|
call jedi#goto()
|
||||||
Expect CurrentBufferIsModule('subprocess') == 1
|
Expect CurrentBufferIsModule('subprocess') == 1
|
||||||
|
|||||||
Reference in New Issue
Block a user