mirror of
https://github.com/natelandau/obsidian-metadata.git
synced 2025-11-14 07:53:47 -05:00
fix: allow adding inline tags with same key different values (#17)
This commit is contained in:
@@ -99,6 +99,21 @@ def test_add_metadata_inline(short_note) -> None:
|
||||
)
|
||||
assert "new_key2:: new_value1" in note.file_content
|
||||
|
||||
assert (
|
||||
note.add_metadata(
|
||||
MetadataType.INLINE, key="new_key2", value="new_value2", location=InsertLocation.BOTTOM
|
||||
)
|
||||
is True
|
||||
)
|
||||
assert "new_key2:: new_value2" in note.file_content
|
||||
|
||||
assert (
|
||||
note.add_metadata(
|
||||
MetadataType.INLINE, key="new_key2", value="new_value2", location=InsertLocation.BOTTOM
|
||||
)
|
||||
is False
|
||||
)
|
||||
|
||||
|
||||
def test_add_metadata_frontmatter(sample_note) -> None:
|
||||
"""Test adding metadata."""
|
||||
|
||||
Reference in New Issue
Block a user