Use Taskchampion to store Taskwarrior data
This replaces the TF2 task files with a TaskChampion replica.
This commit is contained in:
committed by
Dustin J. Mitchell
parent
4b814bc602
commit
5bb9857984
21
test/uuid.t
21
test/uuid.t
@@ -179,15 +179,28 @@ class TestUUIDuplicates(TestCase):
|
||||
"""Executed before each test in the class"""
|
||||
self.t = Task()
|
||||
|
||||
def test_uuid_duplicates(self):
|
||||
"""Verify that duplicating tasks, and recurring tasks do no create duplicates UUIDs"""
|
||||
def test_uuid_duplicates_dupe(self):
|
||||
"""Verify that duplicating tasks does not create duplicate UUIDs"""
|
||||
self.t("add simple")
|
||||
self.t("1 duplicate")
|
||||
self.t("add periodic recur:daily due:yesterday")
|
||||
|
||||
uuids = list()
|
||||
for id in range(1,3):
|
||||
code, out, err = self.t("_get %d.uuid" % id)
|
||||
uuids.append(out.strip())
|
||||
|
||||
self.assertEqual(len(uuids), len(set(uuids)))
|
||||
|
||||
code, out, err = self.t("diag")
|
||||
self.assertIn("No duplicates found", out)
|
||||
|
||||
def test_uuid_duplicates_recurrence(self):
|
||||
"""Verify that recurring tasks do not create duplicate UUIDs"""
|
||||
print(self.t("add periodic recur:daily due:yesterday"))
|
||||
self.t("list") # GC/handleRecurrence
|
||||
|
||||
uuids = list()
|
||||
for id in range(1,7):
|
||||
for id in range(1,5):
|
||||
code, out, err = self.t("_get %d.uuid" % id)
|
||||
uuids.append(out.strip())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user