mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Test: Added no-color logo test
This commit is contained in:
parent
7fb907c76c
commit
9cbbf2b71c
1 changed files with 6 additions and 1 deletions
|
@ -45,6 +45,11 @@ class TestLogoCommand(TestCase):
|
|||
code, out, err = self.t("logo rc._forcecolor:on")
|
||||
self.assertRegexpMatches(out, ".\[48;5;\d+m .\[0m")
|
||||
|
||||
def test_logo_command_no_color(self):
|
||||
"""Check that it only works with color. For coverage"""
|
||||
code, out, err = self.t.runError("logo")
|
||||
self.assertIn("The logo command requires that color support is enabled.", err)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue