mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Use Taskchampion to store Taskwarrior data
This replaces the TF2 task files with a TaskChampion replica.
This commit is contained in:
parent
4b814bc602
commit
5bb9857984
24 changed files with 537 additions and 1362 deletions
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())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue