mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Add test for TW-1656
This commit is contained in:
parent
791bd1b82a
commit
cfb827770f
1 changed files with 22 additions and 0 deletions
|
@ -702,6 +702,28 @@ class TestBug1600(TestCase):
|
|||
self.assertNotIn("[foobar2]", out)
|
||||
|
||||
|
||||
class TestBug1656(TestCase):
|
||||
def setUp(self):
|
||||
self.t = Task()
|
||||
|
||||
def test_report_filter_parenthesized(self):
|
||||
"""default report filter parenthesized"""
|
||||
self.t('add task1 +work')
|
||||
self.t('add task2 +work')
|
||||
self.t('1 done')
|
||||
|
||||
# Sanity check, next does not display completed tasks
|
||||
code, out, err = self.t("next")
|
||||
self.assertNotIn("task1", out)
|
||||
self.assertIn("task2", out)
|
||||
|
||||
# The or in the filter should not cause ignoring the implicit
|
||||
# report filter
|
||||
code, out, err = self.t("next +home or +work")
|
||||
self.assertNotIn("task1", out)
|
||||
self.assertIn("task2", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue