Skip to content

Commit

Permalink
Read UTF-8 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hukkin committed Dec 1, 2024
1 parent 45dc990 commit 09aabd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_fixtures__cli(line, title, text, expected, tmp_path):
file_path = tmp_path / "test_markdown.md"
file_path.write_text(text, encoding="utf-8")
assert mdformat._cli.run([str(file_path)]) == 0
md_new = file_path.read_text()
md_new = file_path.read_text(encoding="utf-8")
assert md_new == expected


Expand All @@ -51,5 +51,5 @@ def test_fixtures_compact__cli(line, title, text, expected, tmp_path):
file_path = tmp_path / "test_markdown.md"
file_path.write_text(text, encoding="utf-8")
assert mdformat._cli.run([str(file_path), "--compact-tables"]) == 0
md_new = file_path.read_text()
md_new = file_path.read_text(encoding="utf-8")
assert md_new == expected

0 comments on commit 09aabd3

Please sign in to comment.