mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tests: Added READY tests
This commit is contained in:
parent
d4643982ff
commit
79513ea17f
1 changed files with 10 additions and 0 deletions
10
test/tag.t
10
test/tag.t
|
@ -91,6 +91,8 @@ class TestVirtualTags(TestCase):
|
|||
cls.t("add blocked depends:2")
|
||||
cls.t("add due_eom due:eom")
|
||||
cls.t("add due_eow due:eow")
|
||||
cls.t("add is_recurring due:eonm recur:weekly")
|
||||
cls.t("add is_scheduled scheduled:eonm")
|
||||
|
||||
def setUp(self):
|
||||
"""Executed before each test in the class"""
|
||||
|
@ -359,6 +361,14 @@ class TestVirtualTags(TestCase):
|
|||
self.assertIn("nonag", out)
|
||||
self.assertIn("tag", out)
|
||||
|
||||
def test_virtual_tag_READY(self):
|
||||
"""Verify 'READY' appears when expected"""
|
||||
code, out, err = self.t("+READY all")
|
||||
self.assertNotIn("is_scheduled", out)
|
||||
|
||||
code, out, err = self.t("-READY all")
|
||||
self.assertIn("is_scheduled", out)
|
||||
|
||||
|
||||
class TestVirtualTagUDA(TestCase):
|
||||
def setUp(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue