diff --git a/ChangeLog b/ChangeLog index 45426022e..3e9c8d9f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,8 @@ - TW-1440 "task import" from STDIN (thanks to Renato Alves). - TW-1454 Redundant dependency should not stop modification (thanks to Tomas Babej). +- TW-1455 Filter parser does not properly handle parentheses in attributes + (thanks to Tomas Babej). - TW-1475 task config expands values with unnecessary spaces (thanks to Tomas Babej). - TW-1480 Weird behaviour on redundant filter beginning with number (thanks to diff --git a/test/project.t b/test/project.t index 095cd11e2..f16f27e28 100755 --- a/test/project.t +++ b/test/project.t @@ -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