mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00

- TW-295 Replacing annotations or descriptions which contain '/'s (thanks to Johannes Schlatow).
29 lines
722 B
Python
Executable file
29 lines
722 B
Python
Executable file
#!/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
|