Make display of ids and annotations the default in summary report for new users

Initialize a new 'timewarrior.cfg' file with the respective settings

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2025-04-22 14:12:11 +02:00 committed by Thomas Lauf
parent 191ad1ec8a
commit 1d3dd8f440
4 changed files with 82 additions and 72 deletions

View file

@ -118,6 +118,9 @@ class TestUndo(TestCase):
def test_undo_config_add_name(self):
"""Test undo of command 'config' (add name)"""
self.t("config")
initial = [x for x in self.t.timewrc_content if x != '\n']
self.t("config foo bar :yes")
before = [x for x in self.t.timewrc_content if x != '\n']
@ -127,7 +130,7 @@ class TestUndo(TestCase):
after = [x for x in self.t.timewrc_content if x != '\n']
self.assertNotEqual(before, after)
self.assertEqual([], after)
self.assertEqual(initial, after)
def test_undo_config_remove_name(self):
"""Test undo of command 'config' (remove name)"""