conftest.py 607 Bytes
Newer Older
wenxue committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName:   test64
# FileName:      conftest.py
# Author:       lao_zhao
# Datetime:     2024/12/27 11:48
# Description:
# 
# ---------------------------------------------------------------------------


# def pytest_collection_modifyitems(items):
#     # item表示每个测试用例,解决用例名称中文显示问题
#     for item in items:
#         item.name = item.name.encode("utf-8").decode("unicode-escape")
#         item._nodeid = item._nodeid.encode("utf-8").decode("unicode-escape")