mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-23 05:57:58 -05:00
style: fix linter formatting issues
This commit is contained in:
@@ -1063,7 +1063,6 @@ def test_process_review_action_per_review_auto_approve_granularity(
|
||||
return review_map.get(node_exec_id)
|
||||
|
||||
mock_get_reviews_for_user.side_effect = mock_get_review_by_id
|
||||
|
||||
|
||||
# Mock process_all_reviews - return 3 approved reviews
|
||||
mock_process_all_reviews = mocker.patch(
|
||||
|
||||
@@ -208,9 +208,8 @@ async def process_review_action(
|
||||
# Only create auto-approval if:
|
||||
# 1. This review was approved
|
||||
# 2. The review requested auto-approval
|
||||
if (
|
||||
review_result.status == ReviewStatus.APPROVED
|
||||
and auto_approve_requests.get(node_exec_id, False)
|
||||
if review_result.status == ReviewStatus.APPROVED and auto_approve_requests.get(
|
||||
node_exec_id, False
|
||||
):
|
||||
try:
|
||||
node_exec = await get_node_execution(node_exec_id)
|
||||
|
||||
@@ -393,9 +393,7 @@ async def update_review_processed_status(node_exec_id: str, processed: bool) ->
|
||||
)
|
||||
|
||||
|
||||
async def cancel_pending_reviews_for_execution(
|
||||
graph_exec_id: str, user_id: str
|
||||
) -> int:
|
||||
async def cancel_pending_reviews_for_execution(graph_exec_id: str, user_id: str) -> int:
|
||||
"""
|
||||
Cancel all pending reviews for a graph execution (e.g., when execution is stopped).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user