Skip to content

Commit

Permalink
测试auto_review_regex未配置时使用默认正则表达式的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
王飞 authored and LeoQuote committed Apr 12, 2024
1 parent a71fc5f commit 6ba6a77
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sql/utils/test_workflow_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6ba6a77

Please sign in to comment.