mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Tests: Added config test framework test
This commit is contained in:
parent
0b146a9340
commit
173dfd9bc4
1 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,12 @@ class TestConfig(TestCase):
|
|||
code, out, err = self.t("config")
|
||||
self.assertIn("name = value", out)
|
||||
|
||||
def test_set_new_name_new_value_internal(self):
|
||||
"""Test setting a new name, new value internal"""
|
||||
self.t.config("name", "value")
|
||||
code, out, err = self.t("config")
|
||||
self.assertIn("name = value", out)
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue