test: Add simple happypath annotation adding
This commit is contained in:
parent
3ef552bbe5
commit
e960f56b93
1 changed files with 4 additions and 6 deletions
|
|
@ -11,9 +11,7 @@ def test_open_editor_escapes_shell():
|
||||||
run_mock.assert_called_once_with(["vim", "my note$1.txt"], check=True)
|
run_mock.assert_called_once_with(["vim", "my note$1.txt"], check=True)
|
||||||
|
|
||||||
|
|
||||||
#
|
def test_add_annotation_calls_tasklib():
|
||||||
# def test_add_annotation_saves_task():
|
task = Mock()
|
||||||
# task = Mock()
|
add_annotation(task, "hello")
|
||||||
# add_annotation(task, "hello")
|
task.add_annotation.assert_called_once_with("hello")
|
||||||
# task.add_annotation.assert_called_once_with("hello")
|
|
||||||
# task.save.assert_called_once()
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue