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:
Dave Halter
2015-03-31 00:54:58 +02:00
parent f714b58300
commit d65c35a69d

View File

@@ -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 " put = ['import tokenize']
execute "normal \<CR>" " silent normal G$\d
Expect tabpagenr('$') == 2 " Expect CurrentBufferIsModule('tokenize') == 1
Expect winnr('$') == 1 " Expect CurrentBufferIsModule('token') == 0
Expect CurrentBufferIsModule('token') == 1 " execute "normal \<CR>"
" Expect tabpagenr('$') == 2
" Expect winnr('$') == 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('$') == 2 " Expect tabpagenr('$') == 2
Expect winnr('$') == 1 " Expect winnr('$') == 1
Expect CurrentBufferIsModule('tokenize') == 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