mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
VimwikiTask: Allow short UUIDs and generate them by default
This commit is contained in:
parent
d6595dfe04
commit
ef3b238b79
3 changed files with 9 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue