mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1455: Filter parser does not properly handle parentheses in attributes
- Thanks to Tomas Babej.
This commit is contained in:
parent
54ee72a6f9
commit
1565c5d01a
2 changed files with 17 additions and 0 deletions
|
@ -300,6 +300,21 @@ class TestBug1511(TestCase):
|
|||
self.assertIn("one", out)
|
||||
self.assertNotIn("zero", out)
|
||||
|
||||
class TestBug1455(TestCase):
|
||||
def setUp(self):
|
||||
self.t = Task()
|
||||
|
||||
def test_project_hierarchy_filter(self):
|
||||
"""Test project:school)
|
||||
|
||||
Bug 1455: Filter parser does not properly handle parentheses in attributes
|
||||
"""
|
||||
self.t("add zero")
|
||||
self.t("add one project:two)")
|
||||
code, out, err = self.t("project:two) list")
|
||||
self.assertIn("one", out)
|
||||
self.assertNotIn("zero", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue