Skip to content

Commit 15fee1e

Browse files
committed
fix: workitem test failure
1 parent db63ca3 commit 15fee1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_workitem_click.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ def json(self) -> Any:
14371437
import os
14381438

14391439
assert os.path.exists(output_file)
1440-
with open(output_file) as fh:
1440+
with open(output_file, encoding="utf-8") as fh:
14411441
data = json.load(fh)
14421442
assert data["name"] == "My Workflow"
14431443
assert "states" in data
@@ -1905,7 +1905,7 @@ def test_preview_workflow_html_to_file(monkeypatch: Any, runner: CliRunner, tmp_
19051905
import os
19061906

19071907
assert os.path.exists(output_file)
1908-
with open(output_file) as fh:
1908+
with open(output_file, encoding="utf-8") as fh:
19091909
content = fh.read()
19101910
assert "mermaid" in content.lower()
19111911

0 commit comments

Comments
 (0)