mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Fixed test that still assumed Cygwin & FreeBSD has 16-color default themes
This commit is contained in:
parent
f6a7a8720e
commit
a8ed0e7d55
1 changed files with 1 additions and 6 deletions
|
@ -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"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue