Commit de2b83d1 authored by zhanhuasheng's avatar zhanhuasheng

清除数据

parent f3ed2bb2
from Utils.sql_handler import test_env_conn
from TestData.setting.email_integration_test_data import emailIntegrationData
email_delete_sql = f'delete from `email_config` where brand_id = {emailIntegrationData.brandId} and email like "autotest%"'
email_delete_result = test_env_conn.execute_sql(sql=email_delete_sql)
...@@ -62,6 +62,7 @@ api7: ...@@ -62,6 +62,7 @@ api7:
url: /api/v1/email/listEmailConfig url: /api/v1/email/listEmailConfig
method: post method: post
data: {"v":"${v}"} data: {"v":"${v}"}
after_sql: /setting/emailIntegration/emailIntegration_delete.py
expected: expected:
- eq: {"$.code": 0} - eq: {"$.code": 0}
- not_in_list: {"$.data.list[*].id": "${append_email_id}"} - not_in_list: {"$.data.list[*].id": "${append_email_id}"}
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