mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added test for 'color.alternate' in custom reports
This commit is contained in:
parent
cebece6d23
commit
65347b7a21
1 changed files with 8 additions and 0 deletions
|
@ -65,6 +65,14 @@ class TestCustomReports(TestCase):
|
|||
self.assertIn("ID", out)
|
||||
self.assertIn("DESCRIPTION", out)
|
||||
|
||||
def test_custom_alternate(self):
|
||||
"""Verify that color.alternate is used"""
|
||||
self.t("add zero")
|
||||
self.t("add one project:A")
|
||||
self.t.config("color.alternate", "on blue")
|
||||
code, out, err = self.t("foo rc._forcecolor:on rc.report.foo.filter:")
|
||||
self.assertIn("[44m", out)
|
||||
|
||||
class TestCustomErrorHandling(TestCase):
|
||||
def setUp(self):
|
||||
self.t = Task()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue