mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tw-1469: Updated test to use unittest.skipIf().
This commit is contained in:
parent
afa042fdb4
commit
b138b278b5
1 changed files with 7 additions and 10 deletions
|
@ -101,18 +101,15 @@ class Test1469(TestCase):
|
|||
self.assertIn('möbel', out)
|
||||
self.assertNotIn('foo', out)
|
||||
|
||||
@unittest.skipIf('CYGWIN' in platform.system(), 'Skipping regex case-insensitive test for Cygwin')
|
||||
def test_explicit_search_insensitive_regex(self):
|
||||
"""Explicit search, case insensitive, regex """
|
||||
if 'CYGWIN' in platform.system():
|
||||
self.diag('Skipping regex case-insensitive test for Cygwin')
|
||||
else:
|
||||
code, out, err = self.t(('list', '/möbel/',
|
||||
'rc.search.case.sensitive=no',
|
||||
'rc.regex=on'))
|
||||
self.assertEqual(0, code,
|
||||
"Exit code was non-zero ({0})".format(code))
|
||||
self.assertIn('möbel', out)
|
||||
self.assertNotIn('foo', out)
|
||||
code, out, err = self.t(('list', '/möbel/',
|
||||
'rc.search.case.sensitive=no',
|
||||
'rc.regex=on'))
|
||||
self.assertEqual(0, code, "Exit code was non-zero ({0})".format(code))
|
||||
self.assertIn('möbel', out)
|
||||
self.assertNotIn('foo', out)
|
||||
|
||||
def test_explicit_search_insensitive_noregex(self):
|
||||
"""Explicit search, case insensitive, no regex """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue