Skip to content

Commit

Permalink
删除掉归档时,资源组不存在的单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
woshiyanghai committed Sep 2, 2024
1 parent ab50b63 commit 107e36f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions sql/utils/test_workflow_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,6 @@ def test_init_no_workflow_and_audit():
assert "WorkflowAudit 或 workflow" in str(e.value)


def test_archive_init_no_resource_group(archive_apply):
"""测试 archive 初始化时指定的资源组不存在"""
with pytest.raises(AuditException) as e:
AuditV2(workflow=archive_apply, resource_group="not_exists_group")
assert "参数错误, 未发现资源组" in str(e.value)


def test_duplicate_create(sql_query_apply, fake_generate_audit_setting):
audit = AuditV2(workflow=sql_query_apply)
audit.create_audit()
Expand Down

0 comments on commit 107e36f

Please sign in to comment.