Python Pytest用于在执行测试用例前生成日志文件

import pytest
import time


@ pytest.fixture(scope=" session ", autouse=True)
def manage_logs(request):
    """ Set log file name same as test name """
    now = time.strftime(

你可能感兴趣的:(测试用例,python,pytest)