From 1d74c183c041400e89e5fa0d05331f10422fde3d Mon Sep 17 00:00:00 2001 From: xiao-hesheng Date: Fri, 19 Jan 2024 10:24:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E4=BF=A1=E6=81=AF=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E5=A2=9E=E5=8A=A0=E5=BC=82=E5=B8=B8=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/db/sql/sql_del_branch_info.py | 2 +- runner.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/db/sql/sql_del_branch_info.py b/common/db/sql/sql_del_branch_info.py index 23f918b2..761a9a33 100644 --- a/common/db/sql/sql_del_branch_info.py +++ b/common/db/sql/sql_del_branch_info.py @@ -3,7 +3,7 @@ import pymysql -class delByBranchId(object): +class delData(object): def Delete_branch_by_id(self): connection = pymysql.connect(host="10.17.65.108", user="root", password="Cmic.2023", database="spd3_herp_test2", diff --git a/runner.py b/runner.py index ea09d063..6dbbf2f8 100644 --- a/runner.py +++ b/runner.py @@ -5,7 +5,7 @@ import platform import shutil import common.run_case_conditions as run import common.case_tag_get as case_tag_get -from common.db.sql.sql_del_branch_info import delByBranchId +from common.db.sql.sql_del_branch_info import delData curPath = os.path.abspath(os.path.dirname(__file__)) rootPath = os.path.split(curPath)[0] @@ -94,5 +94,5 @@ if __name__ == '__main__': print('删了什么文件', del_file) print('结束了') #删除自动化脚本产生的数据 - delByBranchId().Delete_branch_by_id() - delByBranchId().Delete_goods_change_info() \ No newline at end of file + delData().Delete_branch_by_id() + delData().Delete_goods_change_info() \ No newline at end of file -- GitLab