mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-23 05:27:47 +02:00
Test: Improved tw-1630 tests
This commit is contained in:
parent
2f61a7e946
commit
9348e5a509
1 changed files with 14 additions and 3 deletions
|
@ -39,12 +39,23 @@ class TestBug1630(TestCase):
|
|||
def setUp(self):
|
||||
"""Executed before each test in the class"""
|
||||
self.t = Task()
|
||||
self.t("add zero")
|
||||
self.t("add one due:7d")
|
||||
self.t("add two due:10d")
|
||||
|
||||
def test_attribute_modifier_with_duration(self):
|
||||
"""Verify that 'due.before:10d' is correctly interpreted"""
|
||||
self.t("add one due:7d")
|
||||
code, out, err = self.t("due.before:10d list")
|
||||
self.tap(out)
|
||||
code, out, err = self.t("due.before:10d list rc.verbose:nothing")
|
||||
self.assertNotIn("zero", out)
|
||||
self.assertIn("one", out)
|
||||
self.assertNotIn("two", out)
|
||||
|
||||
def test_attribute_no_modifier_with_duration(self):
|
||||
"""Verify that 'due:7d' is correctly interpreted"""
|
||||
code, out, err = self.t("due:7d list rc.verbose:nothing")
|
||||
self.assertNotIn("zero", out)
|
||||
self.assertIn("one", out)
|
||||
self.assertNotIn("two", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue