Skip to content

Commit fdbf749

Browse files
phernandezclaude
andcommitted
fix: add overwrite=True to remaining tests that rely on implicit update
Three more test files had write_note calls that create a note then update it without passing overwrite=True: - test_obsidian_yaml_formatting.py: test_write_note_update_preserves_yaml_format - test_tool_json_output_modes.py: test_write_note_text_and_json_modes - test_tool_write_note_metadata.py: test_metadata_survives_update Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 7c8842e commit fdbf749

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

tests/mcp/test_obsidian_yaml_formatting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ async def test_write_note_update_preserves_yaml_format(app, project_config, test
143143
directory="test",
144144
content="Updated content",
145145
tags=["updated", "new-tag", "format"],
146+
overwrite=True,
146147
)
147148

148149
# Should be an update, not a new creation

tests/mcp/test_tool_json_output_modes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ async def test_write_note_text_and_json_modes(app, test_project):
3838
directory="mode-tests",
3939
content="# Mode Write Note\n\nupdated",
4040
output_format="json",
41+
overwrite=True,
4142
)
4243
assert isinstance(json_result, dict)
4344
assert json_result["title"] == "Mode Write Note"

tests/mcp/test_tool_write_note_metadata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ async def test_metadata_survives_update(app, test_project):
114114
directory="meta-tests",
115115
content="# Version 2",
116116
metadata={"author": "Bob", "version": 2},
117+
overwrite=True,
117118
)
118119

119120
assert "# Updated note" in result

0 commit comments

Comments
 (0)