mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
tests: Save reference to the TaskWarrior instace
This commit is contained in:
parent
b68eb93def
commit
cf5566745c
1 changed files with 6 additions and 6 deletions
|
@ -26,13 +26,13 @@ class TestIntegration(object):
|
|||
|
||||
def generate_data(self):
|
||||
self.dir = tempfile.mkdtemp(dir='/tmp/')
|
||||
tw = TaskWarrior(data_location=self.dir)
|
||||
self.tw = TaskWarrior(data_location=self.dir)
|
||||
self.tasks = [
|
||||
Task(tw, description="project random task 1", project="Random"),
|
||||
Task(tw, description="project random task 2", project="Random"),
|
||||
Task(tw, description="tag home task 1", tags=["home"]),
|
||||
Task(tw, description="tag work task 1", tags=["work"]),
|
||||
Task(tw, description="today task 1", due="now"),
|
||||
Task(self.tw, description="project random task 1", project="Random"),
|
||||
Task(self.tw, description="project random task 2", project="Random"),
|
||||
Task(self.tw, description="tag home task 1", tags=["home"]),
|
||||
Task(self.tw, description="tag work task 1", tags=["work"]),
|
||||
Task(self.tw, description="today task 1", due="now"),
|
||||
]
|
||||
|
||||
for task in self.tasks:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue