mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 11:14:32 +08:00
Problem with multi definitions tokenize tests. Jedi behaves different now, therefore I have disabled the tests. Once we find another example where it actually makes sense to test it, we can reenable the tests.
This commit is contained in:
@@ -73,21 +73,24 @@ describe 'goto_with_tabs'
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'multi_definitions'
|
it 'multi_definitions'
|
||||||
put = ['import tokenize']
|
" This used to behave differently. Now we don't have any real multi
|
||||||
silent normal G$\d
|
" definitions.
|
||||||
Expect CurrentBufferIsModule('tokenize') == 0
|
|
||||||
Expect CurrentBufferIsModule('token') == 0
|
|
||||||
execute "normal \<CR>"
|
|
||||||
Expect tabpagenr('$') == 2
|
|
||||||
Expect winnr('$') == 1
|
|
||||||
Expect CurrentBufferIsModule('token') == 1
|
|
||||||
|
|
||||||
bd
|
" put = ['import tokenize']
|
||||||
silent normal G$\d
|
" silent normal G$\d
|
||||||
execute "normal j\<CR>"
|
" Expect CurrentBufferIsModule('tokenize') == 1
|
||||||
Expect tabpagenr('$') == 2
|
" Expect CurrentBufferIsModule('token') == 0
|
||||||
Expect winnr('$') == 1
|
" execute "normal \<CR>"
|
||||||
Expect CurrentBufferIsModule('tokenize') == 1
|
" Expect tabpagenr('$') == 2
|
||||||
|
" Expect winnr('$') == 1
|
||||||
|
" Expect CurrentBufferIsModule('token') == 1
|
||||||
|
|
||||||
|
" bd
|
||||||
|
" silent normal G$\d
|
||||||
|
" execute "normal j\<CR>"
|
||||||
|
" Expect tabpagenr('$') == 2
|
||||||
|
" Expect winnr('$') == 1
|
||||||
|
" Expect CurrentBufferIsModule('tokenize') == 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -122,22 +125,22 @@ describe 'goto_with_buffers'
|
|||||||
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
|
||||||
Expect CurrentBufferIsModule('tokenize') == 0
|
" Expect CurrentBufferIsModule('tokenize') == 0
|
||||||
Expect CurrentBufferIsModule('token') == 0
|
" Expect CurrentBufferIsModule('token') == 0
|
||||||
execute "normal \<CR>"
|
" execute "normal \<CR>"
|
||||||
Expect tabpagenr('$') == 1
|
" Expect tabpagenr('$') == 1
|
||||||
Expect winnr('$') == 1
|
" Expect winnr('$') == 1
|
||||||
Expect CurrentBufferIsModule('token') == 1
|
" Expect CurrentBufferIsModule('token') == 1
|
||||||
|
|
||||||
bd
|
" bd
|
||||||
silent normal G$\d
|
" silent normal G$\d
|
||||||
execute "normal j\<CR>"
|
" execute "normal j\<CR>"
|
||||||
Expect tabpagenr('$') == 1
|
" Expect tabpagenr('$') == 1
|
||||||
Expect winnr('$') == 1
|
" Expect winnr('$') == 1
|
||||||
Expect CurrentBufferIsModule('tokenize') == 1
|
" Expect CurrentBufferIsModule('tokenize') == 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user