mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
Test: Modificed dependency test to not use abbreviated DOM refs
This commit is contained in:
parent
ce0bd430d0
commit
3ef8112173
1 changed files with 9 additions and 9 deletions
|
@ -104,14 +104,14 @@ class TestDependencies(TestCase):
|
||||||
"""Check blocked/blocking status of two tasks"""
|
"""Check blocked/blocking status of two tasks"""
|
||||||
self.t("2 modify dep:1")
|
self.t("2 modify dep:1")
|
||||||
|
|
||||||
code, out, err = self.t("_get 1.tag.BLOCKED")
|
code, out, err = self.t("_get 1.tags.BLOCKED")
|
||||||
self.assertEqual("\n", out)
|
self.assertEqual("\n", out)
|
||||||
code, out, err = self.t("_get 1.tag.BLOCKING")
|
code, out, err = self.t("_get 1.tags.BLOCKING")
|
||||||
self.assertEqual("BLOCKING\n", out)
|
self.assertEqual("BLOCKING\n", out)
|
||||||
|
|
||||||
code, out, err = self.t("_get 2.tag.BLOCKED")
|
code, out, err = self.t("_get 2.tags.BLOCKED")
|
||||||
self.assertEqual("BLOCKED\n", out)
|
self.assertEqual("BLOCKED\n", out)
|
||||||
code, out, err = self.t("_get 2.tag.BLOCKING")
|
code, out, err = self.t("_get 2.tags.BLOCKING")
|
||||||
self.assertEqual("\n", out)
|
self.assertEqual("\n", out)
|
||||||
|
|
||||||
def test_modify_multiple(self):
|
def test_modify_multiple(self):
|
||||||
|
@ -125,23 +125,23 @@ class TestDependencies(TestCase):
|
||||||
code, out, err = self.t("1 modify dep:5,-4")
|
code, out, err = self.t("1 modify dep:5,-4")
|
||||||
self.assertIn("Modified 1 task.", out)
|
self.assertIn("Modified 1 task.", out)
|
||||||
|
|
||||||
code, out, err = self.t("_get 3.tag.BLOCKING")
|
code, out, err = self.t("_get 3.tags.BLOCKING")
|
||||||
self.assertEqual("BLOCKING\n", out)
|
self.assertEqual("BLOCKING\n", out)
|
||||||
|
|
||||||
code, out, err = self.t("_get 4.tag.BLOCKING")
|
code, out, err = self.t("_get 4.tags.BLOCKING")
|
||||||
self.assertEqual("\n", out)
|
self.assertEqual("\n", out)
|
||||||
|
|
||||||
def test_done_dep(self):
|
def test_done_dep(self):
|
||||||
"""Check that completing a task unblocks"""
|
"""Check that completing a task unblocks"""
|
||||||
self.t("1 modify dep:2")
|
self.t("1 modify dep:2")
|
||||||
|
|
||||||
code, out, err = self.t("_get 1.tag.BLOCKED")
|
code, out, err = self.t("_get 1.tags.BLOCKED")
|
||||||
self.assertEqual("BLOCKED\n", out)
|
self.assertEqual("BLOCKED\n", out)
|
||||||
|
|
||||||
code, out, err = self.t("2 done")
|
code, out, err = self.t("2 done")
|
||||||
self.assertIn("Unblocked 1 'one'.", out)
|
self.assertIn("Unblocked 1 'one'.", out)
|
||||||
|
|
||||||
code, out, err = self.t("_get 1.tag.BLOCKED")
|
code, out, err = self.t("_get 1.tags.BLOCKED")
|
||||||
self.assertEqual("\n", out)
|
self.assertEqual("\n", out)
|
||||||
|
|
||||||
def test_chain_repair(self):
|
def test_chain_repair(self):
|
||||||
|
@ -175,7 +175,7 @@ class TestDependencies(TestCase):
|
||||||
|
|
||||||
# Add a range of IDs
|
# Add a range of IDs
|
||||||
self.t("3 modify dep:1-2")
|
self.t("3 modify dep:1-2")
|
||||||
code, out, err = self.t("_get 1.tag.BLOCKING")
|
code, out, err = self.t("_get 1.tags.BLOCKING")
|
||||||
self.assertEqual("BLOCKING\n", out)
|
self.assertEqual("BLOCKING\n", out)
|
||||||
code, out, err = self.t("_get 2.tag.BLOCKING")
|
code, out, err = self.t("_get 2.tag.BLOCKING")
|
||||||
self.assertEqual("BLOCKING\n", out)
|
self.assertEqual("BLOCKING\n", out)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue