Commit 38c2a13f by taoke

增加数据库配置

parent f0bcdcbf
...@@ -93,8 +93,10 @@ if __name__ == '__main__': ...@@ -93,8 +93,10 @@ if __name__ == '__main__':
# print(str(r)[-7:-1]) # print(str(r)[-7:-1])
# pass # pass
# RedisString(0).delete_key("bmc:c1:dl_img:uid") # RedisString(0).delete_key("bmc:c1:dl_img:uid")
mysql_config=("10.197.236.190", 3306, "root", "123456", "")
# mysql = MYSQL(host="10.197.236.190", port=3306, user="root", pwd="123456", db="edl_private") # mysql = MYSQL(host="10.197.236.190", port=3306, user="root", pwd="123456", db="edl_private")
# info = mysql.ExecuQuery("SELECT * FROM db_tbd_base1.project;") mysql = MYSQL(*mysql_config)
# print(info) info = mysql.ExecuQuery("SELECT * FROM db_tbd_base1.project;")
print(info)
r = RedisString(0).get('bmc:captcha:1ad7d0e9-1e01-454c-8500-d7b5b15c90ff') # r = RedisString(0).get('bmc:captcha:1ad7d0e9-1e01-454c-8500-d7b5b15c90ff')
...@@ -25,6 +25,9 @@ class BaseConfig(): ...@@ -25,6 +25,9 @@ class BaseConfig():
# 日志相关 # 日志相关
log_path = r'' # 日志路径 log_path = r'' # 日志路径
# 数据库
test_mysql = ("10.197.236.190", 3306, "root", "123456", "edl_private")
class BMCConfig(BaseConfig): class BMCConfig(BaseConfig):
"""斑马信用app的配置类""" """斑马信用app的配置类"""
......
...@@ -36,7 +36,9 @@ def get_vehickleId_Tounbind(): ...@@ -36,7 +36,9 @@ def get_vehickleId_Tounbind():
@pytest.fixture(scope='function') @pytest.fixture(scope='function')
def avatarUpdate_del() : #修改头像清除 def avatarUpdate_del() : #修改头像清除
# mysql=BaseConfig.test_mysql
mysql = MYSQL(host="10.197.236.190", port=3306, user="root", pwd="123456", db="edl_private") mysql = MYSQL(host="10.197.236.190", port=3306, user="root", pwd="123456", db="edl_private")
mysql.ExecuNonQuery( mysql.ExecuNonQuery(
"DELETE FROM edl_private.driving_license_image_audit WHERE name='自动化';") # 删除驾驶员 "DELETE FROM edl_private.driving_license_image_audit WHERE name='自动化';") # 删除驾驶员
RedisString(0).delete_key("bmc:c1:dl_img:uid") RedisString(0).delete_key("bmc:c1:dl_img:uid")
......
...@@ -241,7 +241,7 @@ class TestDrivingLicense(): ...@@ -241,7 +241,7 @@ class TestDrivingLicense():
assert res['code'] == expectData['code'] assert res['code'] == expectData['code']
@pytest.mark.scoreDetail @pytest.mark.scoreDetail
@allure.story("提交新国标备案申请") @allure.story("提交新国标备案申请") # 时间需要加8小时
@allure.link("http://yapi.hikcreate.com/project/32/interface/api/44776") @allure.link("http://yapi.hikcreate.com/project/32/interface/api/44776")
@allure.description("接口:/pvtapi/electricBicycle/apply/newGB/submit,creator:胥键雪,autoCreator:taoke") @allure.description("接口:/pvtapi/electricBicycle/apply/newGB/submit,creator:胥键雪,autoCreator:taoke")
@allure.title("{inData[testPoint]}") @allure.title("{inData[testPoint]}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment