conftest.py 606 Bytes
Newer Older
leisha committed
1 2 3 4 5 6 7 8 9 10 11
# -*-coding:utf-8 -*- #
# ---------------------------------------------------------------------------
# ProjectName:   test63
# FileName:      conftest.py
# Author:       lao_zhao
# Datetime:     2024/11/6 15:45
# Description:
# 
# ---------------------------------------------------------------------------


leisha committed
12 13 14 15 16
# 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")