test: Add simple happypath annotation adding
Some checks are pending
website / build (push) Waiting to run
website / deploy (push) Blocked by required conditions

This commit is contained in:
Marty Oehme 2025-11-29 18:45:28 +01:00
parent 3ef552bbe5
commit e960f56b93
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -11,9 +11,7 @@ def test_open_editor_escapes_shell():
run_mock.assert_called_once_with(["vim", "my note$1.txt"], check=True)
#
# def test_add_annotation_saves_task():
# task = Mock()
# add_annotation(task, "hello")
# task.add_annotation.assert_called_once_with("hello")
# task.save.assert_called_once()
def test_add_annotation_calls_tasklib():
task = Mock()
add_annotation(task, "hello")
task.add_annotation.assert_called_once_with("hello")