Commit 4537b08f by taoke

放管服继续在190

parent 026a20da
...@@ -657,3 +657,15 @@ if __name__ == '__main__': ...@@ -657,3 +657,15 @@ if __name__ == '__main__':
pytest.main(["-s","-v","test_my.py",'--alluredir', './bmc/report',"--clean-alluredir"]) pytest.main(["-s","-v","test_my.py",'--alluredir', './bmc/report',"--clean-alluredir"])
# pytest.main(['-v', '-s', "test_my.py::TestMy::test_basiccouponCode", '--alluredir', './bmc/report', "--clean-alluredir"]) # pytest.main(['-v', '-s', "test_my.py::TestMy::test_basiccouponCode", '--alluredir', './bmc/report', "--clean-alluredir"])
os.system('allure serve ./bmc/report') os.system('allure serve ./bmc/report')
# mysql = MYSQL("10.197.236.215", 3306, "root", "DataCenter@!hik", db="edl_public")
# mysql.ExecuNonQuery("delete from feedback_type where id='10008611';")
# mysql.ExecuNonQuery("delete from feedback_chat_record where user_id='598137'")
# mysql.ExecuNonQuery("delete from feedback_main where user_id='598137'")
# mysql = MYSQL("10.197.236.215", 3306, "root", "DataCenter@!hik", db="edl_public")
# mysql.ExecuNonQuery("update edl_public.user set nickname='自动化' where id='598137';")
# mysql.ExecuNonQuery("delete from edl_public.user_address where user_id='598137'and address in ('接口自动化详细地址','存在');")
# mysql.ExecuNonQuery("delete from trade where user_id='598137'and trade_no='hik202105081390911897531973632';")
...@@ -107,7 +107,7 @@ class TestRoadreview: ...@@ -107,7 +107,7 @@ class TestRoadreview:
# mysql = MYSQL("10.197.236.190", 3306, "root", "123456", db="db_gy_dmsmp") # mysql = MYSQL("10.197.236.190", 3306, "root", "123456", db="db_gy_dmsmp")
# mysql = BaseConfig.test_mysql # mysql = BaseConfig.test_mysql
# mysql = MYSQL(*mysql) # mysql = MYSQL(*mysql)
mysql = MYSQL("10.197.236.215", 3306, "root", "DataCenter@!hik", db="db_gy_dmsmp") mysql = MYSQL("10.197.236.190", 3306, "root", "123456", db="db_gy_dmsmp")
basic_info_id = mysql.ExecuQuery("select id from db_gy_dmsmp.occupy_road_apply where user_id=393038 and people_phone='18800000044'order by id;")[-1]["id"] basic_info_id = mysql.ExecuQuery("select id from db_gy_dmsmp.occupy_road_apply where user_id=393038 and people_phone='18800000044'order by id;")[-1]["id"]
return basic_info_id return basic_info_id
...@@ -246,7 +246,7 @@ class TestRoadreview: ...@@ -246,7 +246,7 @@ class TestRoadreview:
# mysql = MYSQL("10.197.236.190", 3306, "root", "123456", db="db_gy_dmsmp") # mysql = MYSQL("10.197.236.190", 3306, "root", "123456", db="db_gy_dmsmp")
# mysql = BaseConfig.test_mysql # mysql = BaseConfig.test_mysql
# mysql = MYSQL(*mysql) # mysql = MYSQL(*mysql)
mysql = MYSQL("10.197.236.215", 3306, "root", "DataCenter@!hik", db="db_gy_dmsmp") mysql = MYSQL("10.197.236.190", 3306, "root", "123456", db="db_gy_dmsmp")
mysql.ExecuNonQuery("delete from db_gy_dmsmp.occupy_road_apply where user_id='393038' and people_phone='18800000044' ;") mysql.ExecuNonQuery("delete from db_gy_dmsmp.occupy_road_apply where user_id='393038' and people_phone='18800000044' ;")
def teardown(self): def teardown(self):
......
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