Test: Fixed test that still assumed Cygwin & FreeBSD has 16-color default themes
This commit is contained in:
@@ -68,12 +68,7 @@ class TestColorCommand(TestCase):
|
|||||||
def test_colors_legend(self):
|
def test_colors_legend(self):
|
||||||
""" Verify 'task colors legend' shows theme colors"""
|
""" Verify 'task colors legend' shows theme colors"""
|
||||||
code, out, err = self.t("colors rc._forcecolor:on legend")
|
code, out, err = self.t("colors rc._forcecolor:on legend")
|
||||||
if 'CYGWIN' in platform.system() or 'FreeBSD' in platform.system():
|
self.assertRegexpMatches(out, "color.debug\s+.\[0m\s.\[38;5;4mcolor4\s+.\[0m")
|
||||||
# 16-color
|
|
||||||
self.assertRegexpMatches(out, "color.debug\s+.\[0m\s.\[34mblue\s+.\[0m")
|
|
||||||
else:
|
|
||||||
# 256-color
|
|
||||||
self.assertRegexpMatches(out, "color.debug\s+.\[0m\s.\[38;5;4mcolor4\s+.\[0m")
|
|
||||||
|
|
||||||
def test_colors_legend_override(self):
|
def test_colors_legend_override(self):
|
||||||
"""Verify 'task colors legend' obeys rc overrides"""
|
"""Verify 'task colors legend' obeys rc overrides"""
|
||||||
|
|||||||
Reference in New Issue
Block a user