Skip to content

Commit 6282584

Browse files
committed
test: Update tests
1 parent 44236d0 commit 6282584

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_code_embedding.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_code_embedder(
4343
) -> None:
4444
# Create a temporary copy of the original file
4545
temp_readme_path = tmp_path / "readme.md"
46-
with open(before_code_embedding_path) as readme_file:
46+
with open(before_code_embedding_path, encoding="utf-8") as readme_file:
4747
temp_readme_path.write_text(readme_file.read())
4848

4949
code_embedder = CodeEmbedder(
@@ -55,10 +55,10 @@ def test_code_embedder(
5555

5656
code_embedder()
5757

58-
with open(after_code_embedding_path) as expected_file:
58+
with open(after_code_embedding_path, encoding="utf-8") as expected_file:
5959
expected_readme_content = expected_file.readlines()
6060

61-
with open(temp_readme_path) as updated_file:
61+
with open(temp_readme_path, encoding="utf-8") as updated_file:
6262
updated_readme_content = updated_file.readlines()
6363

6464
assert updated_readme_content == expected_readme_content

0 commit comments

Comments
 (0)