File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -734,4 +734,4 @@ async def test_batch_indexer_does_not_inject_frontmatter_when_sync_enforcement_i
734734 assert entity .permalink == existing_permalink
735735 assert frontmatter_writer .await_count == 0
736736 assert indexed .markdown_content == persisted_content
737- assert await file_service .read_file_content (path ) == persisted_content
737+ assert ( await file_service .read_file_bytes (path )). decode ( "utf-8" ) == persisted_content
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ async def test_sync_one_markdown_file_returns_original_content_when_no_rewrite_n
153153
154154 assert frontmatter_writer .await_count == 0
155155 assert result .markdown_content == persisted_content
156- assert file_path .read_text ( encoding = "utf-8" ) == persisted_content
156+ assert file_path .read_bytes (). decode ( "utf-8" ) == persisted_content
157157 assert result .checksum == await sync_service .file_service .compute_checksum (
158158 "notes/no-rewrite.md"
159159 )
@@ -248,7 +248,7 @@ async def test_sync_one_markdown_file_indexes_thematic_break_content_without_fro
248248 persisted_content = file_path .read_bytes ().decode ("utf-8" )
249249
250250 assert result .markdown_content == persisted_content
251- assert file_path .read_text ( encoding = "utf-8" ) == persisted_content
251+ assert file_path .read_bytes (). decode ( "utf-8" ) == persisted_content
252252 index_entity_data .assert_awaited_once_with (
253253 result .entity ,
254254 content = persisted_content ,
You can’t perform that action at this time.
0 commit comments