mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added combination of skipIf and expectedFail
This commit is contained in:
parent
e4132f6a02
commit
10944a23e1
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import unittest
|
import unittest
|
||||||
|
import platform
|
||||||
# Ensure python finds the local simpletap module
|
# Ensure python finds the local simpletap module
|
||||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
|
@ -230,12 +231,17 @@ class TestColorRulesMerging(TestCase):
|
||||||
|
|
||||||
self.t('add due:today +home hometask') # Task that matches both color rules
|
self.t('add due:today +home hometask') # Task that matches both color rules
|
||||||
|
|
||||||
|
@unittest.skipIf('CYGWIN' in platform.system(), 'Skipping color merge test for Cygwin')
|
||||||
|
@unittest.skipIf('FREEBSD' in platform.system(), 'Skipping color merge test for FREEBSD')
|
||||||
@unittest.expectedFailure
|
@unittest.expectedFailure
|
||||||
def test_colors_merge(self):
|
def test_colors_merge(self):
|
||||||
"""Tests whether colors merge"""
|
"""Tests whether colors merge"""
|
||||||
code, out, err = self.t('1 info')
|
code, out, err = self.t('1 info')
|
||||||
self.assertIn('\x1b[31;47mhometask', out) # Red on white
|
self.assertIn('\x1b[31;47mhometask', out) # Red on white
|
||||||
|
|
||||||
|
@unittest.skipIf('CYGWIN' in platform.system(), 'Skipping color merge test for Cygwin')
|
||||||
|
@unittest.skipIf('FREEBSD' in platform.system(), 'Skipping color merge test for FREEBSD')
|
||||||
|
@unittest.expectedFailure
|
||||||
@unittest.expectedFailure
|
@unittest.expectedFailure
|
||||||
def test_colors_merge_off(self):
|
def test_colors_merge_off(self):
|
||||||
"""No color merge behaviour with rule.color.merge=no"""
|
"""No color merge behaviour with rule.color.merge=no"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue