mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
tests: Add test for TW #2247
This commit is contained in:
parent
b33a99a748
commit
9b8cbace45
1 changed files with 18 additions and 0 deletions
|
@ -122,6 +122,24 @@ class TestVerbosity(TestCase):
|
|||
code, out, err = self.t("rc.verbose:project add proj:T two")
|
||||
self.assertIn("The project 'T' has changed.", err)
|
||||
|
||||
def test_bug_2247(self):
|
||||
"""
|
||||
Verbosity override is applied regardless of the order of the arguments.
|
||||
"""
|
||||
|
||||
code, out, err = self.t("rc.color:0 add test")
|
||||
self.assertIn("Configuration override", err)
|
||||
|
||||
# Once rc.verbose:nothing is set, no output about configuration overrides should appear
|
||||
code, out, err = self.t("rc.verbose:nothing add test")
|
||||
self.assertNotIn("Configuration override", err)
|
||||
|
||||
code, out, err = self.t("rc.color:0 rc.verbose:nothing add test")
|
||||
self.assertNotIn("Configuration override", err)
|
||||
|
||||
code, out, err = self.t("rc.verbose:nothing rc.color:0 add test")
|
||||
self.assertNotIn("Configuration override", err)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue