tests: Fix misquoted g:vimwiki_list setting

vimrunner.Client.command doesn't do any escaping so we can only use
double quotes. Otherwise it does this:

    self.server.remote_expr(["VimrunnerPyEvaluateCommandOutput('let g:vimwiki_list = [{'syntax': 'mediawiki', 'ext': '.txt','path': '/tmp/tmpl1hh2nnf'}]')"])
    E449: Invalid expression received: Send expression failed.
This commit is contained in:
Tomas Janousek 2020-06-28 16:53:26 +02:00 committed by Tomas Babej
parent 6609c541eb
commit c8c3cc9a00

View file

@ -69,7 +69,7 @@ class IntegrationTest(object):
def configure_global_variables(self): def configure_global_variables(self):
self.command('let g:taskwiki_data_location="{0}"'.format(self.dir)) self.command('let g:taskwiki_data_location="{0}"'.format(self.dir))
self.command('let g:taskwiki_taskrc_location="{0}"'.format(self.taskrc_path)) self.command('let g:taskwiki_taskrc_location="{0}"'.format(self.taskrc_path))
self.command("let g:vimwiki_list = [{'syntax': 'mediawiki', 'ext': '.txt','path': '%s'}]" % self.dir) self.command('let g:vimwiki_list = [{"syntax": "mediawiki", "ext": ".txt","path": "%s"}]' % self.dir)
self.command('let g:taskwiki_measure_coverage="yes"') self.command('let g:taskwiki_measure_coverage="yes"')
self.command('let g:taskwiki_markup_syntax="{0}"'.format(self.markup)) self.command('let g:taskwiki_markup_syntax="{0}"'.format(self.markup))