Skip to content

Commit 84a1f68

Browse files
authored
test: Add UTF8 test (#760)
1 parent 71b7408 commit 84a1f68

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

testing/test_integration.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,21 @@ def test_collect_error(self, pytester):
772772
log = get_log(page)
773773
assert_that(log).matches(rf"E\s+ImportError: {error_msg}")
774774

775+
def test_report_display_utf8(self, pytester):
776+
pytester.makepyfile(
777+
"""
778+
import pytest
779+
@pytest.mark.parametrize("utf8", [("测试用例名称")])
780+
def test_pass(utf8):
781+
assert True
782+
"""
783+
)
784+
page = run(pytester)
785+
assert_results(page, passed=1)
786+
787+
log = get_log(page)
788+
assert_that(log).does_not_match(r"测试用例名称")
789+
775790

776791
class TestLogCapturing:
777792
LOG_LINE_REGEX = r"\s+this is {}"

0 commit comments

Comments
 (0)