Skip to content

Commit

Permalink
尝试修改单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
woshiyanghai committed Sep 20, 2024
1 parent c832bfe commit 27e44a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/test_archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,12 @@ def test_archive_audit(self, _async_task, mock_operate):
assert self.archive_apply.status == WorkflowStatus.PASSED


@patch('sql.archiver.apply_async.apply_async')
def test_add_archive_task(self, apply_async_mock):
@patch('sql.archiver.add_archive_task.apply_async')
def test_add_archive_task(self, mock_apply_async):
# 调用 add.apply_async
add_archive_task.apply_async()

@patch("sql.archiver.apply_async")
@patch("sql.archiver.archive.apply_async")
def test_add_archive(self, mock_apply_async):
"""
测试执行归档任务
Expand Down

0 comments on commit 27e44a0

Please sign in to comment.