fix(notes): preserve file encoding when writing to filesystem (#59)

This commit is contained in:
Nathaniel Landau
2023-09-02 17:03:06 -04:00
committed by GitHub
parent 22e9719402
commit 10449b3e6a
7 changed files with 143 additions and 117 deletions

View File

@@ -34,7 +34,7 @@ def test_create_note_1(sample_note):
assert note.note_path == Path(sample_note)
assert note.dry_run is True
assert note.encoding == "utf_8"
assert len(note.metadata) == 20
assert len(note.metadata) == 22
with sample_note.open():
content = sample_note.read_text()