mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Unit Tests
- Escapes / characes in search patterns, so that 'foo/' --> 'foo\/', which then allows '/foo\//'. In Python, this needs one more: '/foo\\//'.
This commit is contained in:
parent
3279566244
commit
879b1edb5c
1 changed files with 1 additions and 2 deletions
|
@ -21,8 +21,7 @@ class Test1418(TestCase):
|
|||
self.assertIn(description, out)
|
||||
|
||||
def search_task_pattern(self, description):
|
||||
# TODO escape any "/" in description - check comments on bug 1418
|
||||
command = ("/" + description + "/",)
|
||||
command = ("/" + description.replace("/", "\\/") + "/",)
|
||||
code, out, err = self.t(command)
|
||||
self.assertIn(description, out)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue