From 9bda81b09c66c820c1a3d774fa454f21dbacddd7 Mon Sep 17 00:00:00 2001 From: zhanhuasheng Date: Mon, 22 Apr 2024 14:29:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 81f915b..44c4363 100644 --- a/main.py +++ b/main.py @@ -1,14 +1,12 @@ import pytest from Utils.webhook_handler import webhook from Utils.sql_handler import test_env_conn -import os if __name__ == '__main__': try: # pytest.main(['-vs',r'C:\Users\rd71\PycharmProjects\willdesk_api_auto\TestCase\inbox\test_06_channel.py',f'--alluredir=./allureReports/json','--clean-alluredir']) - pytest.main(['-vs','./TestCase',f'--html=./report.html']) #allure报告一直生成不了,改用pytest自带报告 - # pytest_run_command = 'pytest ./TestCase -vs -n=3 --reruns=1 --reruns-delay=3 --html=./report.html' - # os.system(pytest_run_command) + pytest.main(['-vs','./TestCase/setting/test_01_emailIntegration.py',f'--html=./report.html']) #allure报告一直生成不了,改用pytest自带报告 + finally: test_env_conn.close_db() #关闭数据库链接 -- GitLab