mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-1511: Project titles not properly parsed if they contain hyphens
- Thanks to Leon Feng, Blake Sweeney, Dylan Mikus.
This commit is contained in:
parent
326367a36e
commit
6814fd8d31
3 changed files with 19 additions and 0 deletions
2
AUTHORS
2
AUTHORS
|
@ -256,3 +256,5 @@ suggestions:
|
||||||
David Brenner
|
David Brenner
|
||||||
Audrey Easterday
|
Audrey Easterday
|
||||||
Stefan Betz
|
Stefan Betz
|
||||||
|
Blake Sweeney
|
||||||
|
Dylan Mikus
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
- TW-1480 Weird behaviour on redundant filter beginning with number (thanks to
|
- TW-1480 Weird behaviour on redundant filter beginning with number (thanks to
|
||||||
Tomas Babej).
|
Tomas Babej).
|
||||||
- TW-1488 You have more urgent tasks (thanks to Stefan Betz, Denis Kasak).
|
- TW-1488 You have more urgent tasks (thanks to Stefan Betz, Denis Kasak).
|
||||||
|
- TW-1511 Project titles not properly parsed if they contain hyphens (thanks to
|
||||||
|
Leon Feng, Blake Sweeney, Dylan Mikus).
|
||||||
- TW-1527 Extra spaces added around slashes (thanks to Renato Alves).
|
- TW-1527 Extra spaces added around slashes (thanks to Renato Alves).
|
||||||
- TW-1529 Parser incorrectly inserting spaces into task description (thanks to
|
- TW-1529 Parser incorrectly inserting spaces into task description (thanks to
|
||||||
David Brenner).
|
David Brenner).
|
||||||
|
|
|
@ -285,6 +285,21 @@ class TestBug856(TestCase):
|
||||||
self.assertIn("floating", out)
|
self.assertIn("floating", out)
|
||||||
self.assertNotIn("assigned", out)
|
self.assertNotIn("assigned", out)
|
||||||
|
|
||||||
|
class TestBug1511(TestCase):
|
||||||
|
def setUp(self):
|
||||||
|
self.t = Task()
|
||||||
|
|
||||||
|
def test_project_hierarchy_filter(self):
|
||||||
|
"""Test project:one-two can be added and queried
|
||||||
|
|
||||||
|
Bug 1511: Project titles not properly parsed if they contain hyphens
|
||||||
|
"""
|
||||||
|
self.t("add zero")
|
||||||
|
self.t("add one project:two-three")
|
||||||
|
code, out, err = self.t("project:two-three 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