From 6ba6a777ec97d723eb32edbd7de70db0fea50cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=A3=9E?= Date: Fri, 12 Apr 2024 19:09:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95auto=5Freview=5Fregex?= =?UTF-8?q?=E6=9C=AA=E9=85=8D=E7=BD=AE=E6=97=B6=E4=BD=BF=E7=94=A8=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=AD=A3=E5=88=99=E8=A1=A8=E8=BE=BE=E5=BC=8F=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/utils/test_workflow_audit.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sql/utils/test_workflow_audit.py b/sql/utils/test_workflow_audit.py index bc2517706d..ab0b1a5e64 100644 --- a/sql/utils/test_workflow_audit.py +++ b/sql/utils/test_workflow_audit.py @@ -562,11 +562,7 @@ def test_auto_review_with_default_regex( [{"sql": sql_command, "affected_rows": 0}] ) # 执行自动审核逻辑 - result = audit.is_auto_review() - - assert ( - result == expected_result - ), f"SQL命令 '{sql_command}' 自动审核预期结果为 {expected_result},但实际结果为 {result}。" + assert audit.is_auto_review() == expected_result def test_get_review_info(