mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-23 14:36:44 +02:00
Tests: Modified tests to accomodate new 'prioirity' color rules
This commit is contained in:
parent
c28932ebbe
commit
e8654c49b5
1 changed files with 3 additions and 9 deletions
|
@ -62,10 +62,9 @@ class TestColorRules(TestCase):
|
||||||
cls.t.config('color.debug', 'green')
|
cls.t.config('color.debug', 'green')
|
||||||
cls.t.config('color.project.x', 'red')
|
cls.t.config('color.project.x', 'red')
|
||||||
cls.t.config('color.project.none', '')
|
cls.t.config('color.project.none', '')
|
||||||
cls.t.config('color.pri.H', 'red')
|
cls.t.config('color.uda.priority.H', 'red')
|
||||||
cls.t.config('color.pri.M', 'blue')
|
cls.t.config('color.uda.priority.M', 'blue')
|
||||||
cls.t.config('color.pri.L', 'green')
|
cls.t.config('color.uda.priority.L', 'green')
|
||||||
cls.t.config('color.pri.none', '')
|
|
||||||
cls.t.config('color.keyword.keyword', 'red')
|
cls.t.config('color.keyword.keyword', 'red')
|
||||||
cls.t.config('color.tagged', '')
|
cls.t.config('color.tagged', '')
|
||||||
cls.t.config('color.tag.none', '')
|
cls.t.config('color.tag.none', '')
|
||||||
|
@ -178,11 +177,6 @@ class TestColorRules(TestCase):
|
||||||
code, out, err = self.t(('/pri_l/', 'info'))
|
code, out, err = self.t(('/pri_l/', 'info'))
|
||||||
self.assertIn('\x1b[32m', out)
|
self.assertIn('\x1b[32m', out)
|
||||||
|
|
||||||
def test_priority_none(self):
|
|
||||||
"""Priority none color rule."""
|
|
||||||
code, out, err = self.t(('/control/', 'rc.color.pri.none=red', 'info'))
|
|
||||||
self.assertIn('\x1b[31m', out)
|
|
||||||
|
|
||||||
def test_keyword(self):
|
def test_keyword(self):
|
||||||
"""Keyword color rule."""
|
"""Keyword color rule."""
|
||||||
code, out, err = self.t(('/keyword/', 'info'))
|
code, out, err = self.t(('/keyword/', 'info'))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue