mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-295
- TW-295 Replacing annotations or descriptions which contain '/'s (thanks to Johannes Schlatow).
This commit is contained in:
parent
d38e606a50
commit
3e67d68f57
2 changed files with 31 additions and 0 deletions
29
test/tw-295.t
Executable file
29
test/tw-295.t
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue