VimwikiTask: Allow short UUIDs and generate them by default

This commit is contained in:
Tomas Babej 2015-03-27 01:47:50 +01:00
parent d6595dfe04
commit ef3b238b79
3 changed files with 9 additions and 3 deletions

View file

@ -109,7 +109,11 @@ class IntegrationTest(object):
# Find the task and fill in its uuid
tasks = self.tw.tasks.filter(description=match.group('desc'))
return line.format(uuid=tasks[0]['uuid']) if tasks else line
if tasks:
# Return {uuid} replaced by short form UUID
return line.format(uuid=tasks[0]['uuid'].split('-')[0])
else:
return line
# First, run sanity checks
self.check_sanity()