mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 00:43:07 +02:00
tests: Add a test for handling short UUIDs in the depends column
This commit is contained in:
parent
28e268bd26
commit
0cc2de6179
1 changed files with 16 additions and 0 deletions
|
@ -211,6 +211,22 @@ class TestDependencies(TestCase):
|
||||||
code, out, err = self.t("3 modify dep:-1,-%s" % uuid)
|
code, out, err = self.t("3 modify dep:-1,-%s" % uuid)
|
||||||
self.assertIn("Modifying task 3 'three'.", out)
|
self.assertIn("Modifying task 3 'three'.", out)
|
||||||
|
|
||||||
|
def test_id_uuid_short_dep(self):
|
||||||
|
"""Check that short UUIDs are usable for deps"""
|
||||||
|
|
||||||
|
# Get 2.uuid
|
||||||
|
code, out, err = self.t("_get 2.uuid")
|
||||||
|
short_uuid = out.strip().split("-")[0]
|
||||||
|
|
||||||
|
# Add a mix of IDs and UUID
|
||||||
|
code, out, err = self.t("add three dep:%s" % short_uuid)
|
||||||
|
self.assertIn("Created task 3.", out)
|
||||||
|
|
||||||
|
# Remove a mix of IЅs and UUID
|
||||||
|
code, out, err = self.t("3 modify dep:-%s" % short_uuid)
|
||||||
|
self.assertIn("Modifying task 3 'three'.", out)
|
||||||
|
|
||||||
|
|
||||||
class TestBug697(TestCase):
|
class TestBug697(TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
"""Executed before each test in the class"""
|
"""Executed before each test in the class"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue