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
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue