mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Merged bug.694.t into annotate.t
This commit is contained in:
parent
fd4a0ad2fe
commit
faae5ff1ef
2 changed files with 14 additions and 62 deletions
|
@ -142,6 +142,20 @@ class TestBug495(TestCase):
|
|||
code, out, err = self.t("_get 1.annotations.1.description")
|
||||
self.assertEqual("This is -- a -- test\n", out)
|
||||
|
||||
class TestBug694(TestCase):
|
||||
def setUp(self):
|
||||
self.t = Task()
|
||||
|
||||
def test_annotation_with_due(self):
|
||||
"""Add an annotation as well as a due date"""
|
||||
self.t("add one")
|
||||
self.t("1 annotate two due:today")
|
||||
|
||||
code, out, err = self.t("rc.journal.info:off 1 info")
|
||||
self.assertIn("one", out)
|
||||
self.assertIn("two", out)
|
||||
self.assertIn("Due", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue