- TW-295 Replacing annotations or descriptions which contain '/'s (thanks to
         Johannes Schlatow).
This commit is contained in:
Paul Beckingham 2014-11-09 20:07:27 -05:00
parent d38e606a50
commit 3e67d68f57
2 changed files with 31 additions and 0 deletions

View file

@ -81,6 +81,8 @@
- TW-288 `task edit` mangles descriptions with embedded newlines (thanks to - TW-288 `task edit` mangles descriptions with embedded newlines (thanks to
Kevin Ballard). Kevin Ballard).
- TW-294 Display UUID of task created by add (thanks to John West). - TW-294 Display UUID of task created by add (thanks to John West).
- TW-295 Replacing annotations or descriptions which contain '/'s (thanks to
Johannes Schlatow).
- TW-296 urgency of blocked task should affect urgency of blocking task (thanks - TW-296 urgency of blocked task should affect urgency of blocking task (thanks
to Sitaram Chamarty). to Sitaram Chamarty).
- TW-306 Wrong date format in burndown view (thanks to Michele Santullo). - TW-306 Wrong date format in burndown view (thanks to Michele Santullo).

29
test/tw-295.t Executable file
View file

@ -0,0 +1,29 @@
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import sys
import os
import unittest
from datetime import datetime
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from basetest import Task, TestCase
class TestBugNumber(TestCase):
@classmethod
def setUp(self):
self.t = Task()
def test_subst_with_slashes(self):
"""Test substitution containing slashes"""
self.t(('add', '--', 'one/two/three'))
self.t(('1', 'modify', '/\\/two\\//TWO/'))
code, out, err = self.t(('list',))
self.assertIn('oneTWOthree', out)
if __name__ == "__main__":
from simpletap import TAPTestRunner
unittest.main(testRunner=TAPTestRunner())
# vim: ai sts=4 et sw=4