mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
tests: Save references to Task instances in the Test instance
This commit is contained in:
parent
6a8e9063e8
commit
eedff406f8
1 changed files with 6 additions and 2 deletions
|
@ -33,8 +33,12 @@ class IntegrationTest(object):
|
|||
self.dir = tempfile.mkdtemp(dir='/tmp/')
|
||||
self.tw = TaskWarrior(data_location=self.dir)
|
||||
|
||||
for task_kwargs in self.tasks:
|
||||
Task(self.tw, **task_kwargs).save()
|
||||
new_tasks = [Task(self.tw, **task_kwargs)
|
||||
for task_kwargs in self.tasks]
|
||||
|
||||
self.tasks = new_tasks
|
||||
for task in self.tasks:
|
||||
task.save()
|
||||
|
||||
def setup(self):
|
||||
self.generate_data()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue