mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-23 02:23:07 +02:00
tests: Fix vimwiki loading errors
Not only can we stop ignoring the errors, this also fixes TestInfoActionNotTriggeredByEnterOnLink which would otherwise cause vim to complain about g:vimwiki_wikilocal_vars not being available.
This commit is contained in:
parent
789d04f488
commit
698e2448f3
3 changed files with 6 additions and 6 deletions
|
@ -26,7 +26,7 @@ let s:plugin_path = escape(expand('<sfile>:p:h:h:h'), '\')
|
|||
|
||||
" Run the measure parts first, if desired
|
||||
if exists("g:taskwiki_measure_coverage")
|
||||
execute 'py3file ' . s:plugin_path . '/knowledge/testcoverage.py'
|
||||
execute 'py3file ' . s:plugin_path . '/taskwiki/testcoverage.py'
|
||||
endif
|
||||
|
||||
" Execute the main body of taskwiki source
|
||||
|
|
|
@ -22,10 +22,10 @@ class IntegrationTest(object):
|
|||
tasks = []
|
||||
markup = 'default'
|
||||
|
||||
def add_plugin(self, name):
|
||||
def add_plugin(self, name, *args):
|
||||
plugin_base = os.path.expanduser('~/.vim/bundle/')
|
||||
plugin_path = os.path.join(plugin_base, name)
|
||||
self.client.add_plugin(plugin_path)
|
||||
self.client.add_plugin(plugin_path, *args)
|
||||
|
||||
def write_buffer(self, lines, position=0):
|
||||
result = self.client.write_buffer(position + 1, lines)
|
||||
|
@ -92,10 +92,10 @@ class IntegrationTest(object):
|
|||
|
||||
self.configure_global_variables()
|
||||
self.add_plugin('taskwiki')
|
||||
self.add_plugin('vimwiki')
|
||||
self.add_plugin('vimwiki', 'plugin/vimwiki.vim')
|
||||
self.filepath = os.path.join(self.dir, 'testwiki.txt')
|
||||
self.client.edit(self.filepath)
|
||||
self.command('set filetype=vimwiki', silent=None) # TODO: fix these vimwiki loading errors
|
||||
self.command('set filetype=vimwiki')
|
||||
|
||||
def teardown(self):
|
||||
if not self.client:
|
||||
|
|
|
@ -1370,7 +1370,7 @@ class TestSelectAfterBufferSwitch(IntegrationTest):
|
|||
sleep(0.5)
|
||||
self.command('split testwiki2.txt', silent=False)
|
||||
sleep(0.5)
|
||||
self.command('set filetype=vimwiki', silent=False)
|
||||
self.command('set filetype=vimwiki')
|
||||
sleep(0.5)
|
||||
self.command('q!')
|
||||
sleep(0.5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue