TW-1455: Filter parser does not properly handle parentheses in attributes
- Thanks to Tomas Babej.
This commit is contained in:
@@ -16,6 +16,8 @@
|
|||||||
- TW-1440 "task import" from STDIN (thanks to Renato Alves).
|
- TW-1440 "task import" from STDIN (thanks to Renato Alves).
|
||||||
- TW-1454 Redundant dependency should not stop modification (thanks to Tomas
|
- TW-1454 Redundant dependency should not stop modification (thanks to Tomas
|
||||||
Babej).
|
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
|
- TW-1475 task config expands values with unnecessary spaces (thanks to Tomas
|
||||||
Babej).
|
Babej).
|
||||||
- TW-1480 Weird behaviour on redundant filter beginning with number (thanks to
|
- TW-1480 Weird behaviour on redundant filter beginning with number (thanks to
|
||||||
|
|||||||
@@ -300,6 +300,21 @@ class TestBug1511(TestCase):
|
|||||||
self.assertIn("one", out)
|
self.assertIn("one", out)
|
||||||
self.assertNotIn("zero", 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__":
|
if __name__ == "__main__":
|
||||||
from simpletap import TAPTestRunner
|
from simpletap import TAPTestRunner
|
||||||
|
|||||||
Reference in New Issue
Block a user