Skip to content

Commit f9989a9

Browse files
committed
lint
Signed-off-by: Tim Li <[email protected]>
1 parent 428f0ac commit f9989a9

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

cadence/worker/_decision_task_handler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import logging
2-
from typing import Dict, Any
32

43
from cadence.api.v1.common_pb2 import Payload
54
from cadence.api.v1.service_worker_pb2 import (

tests/cadence/_internal/workflow/test_workflow_engine_integration.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
Integration tests for WorkflowEngine.
44
"""
55

6-
import asyncio
76
import pytest
87
from unittest.mock import Mock, AsyncMock, patch
98
from cadence.api.v1.service_worker_pb2 import PollForDecisionTaskResponse
109
from cadence.api.v1.common_pb2 import Payload, WorkflowExecution, WorkflowType
1110
from cadence.api.v1.history_pb2 import History, HistoryEvent, WorkflowExecutionStartedEventAttributes
12-
from cadence.api.v1.decision_pb2 import Decision
1311
from cadence._internal.workflow.workflow_engine import WorkflowEngine, DecisionResult
1412
from cadence.workflow import WorkflowInfo
1513
from cadence.client import Client
@@ -299,7 +297,6 @@ async def test_process_decision_with_query_results(self, workflow_engine, mock_c
299297

300298
# Mock the decision manager to return decisions with query results
301299
mock_decisions = [Mock()]
302-
query_results = {"query1": "result1"}
303300

304301
with patch.object(workflow_engine._decision_manager, 'collect_pending_decisions', return_value=mock_decisions):
305302
# Process the decision

tests/cadence/worker/test_decision_task_handler_integration.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,16 @@
33
Integration tests for DecisionTaskHandler and WorkflowEngine.
44
"""
55

6-
import asyncio
76
import pytest
8-
from unittest.mock import Mock, AsyncMock, MagicMock, patch
7+
from unittest.mock import Mock, AsyncMock, patch
98
from cadence.api.v1.service_worker_pb2 import (
10-
PollForDecisionTaskResponse,
11-
RespondDecisionTaskCompletedRequest,
12-
RespondDecisionTaskFailedRequest
9+
PollForDecisionTaskResponse
1310
)
1411
from cadence.api.v1.common_pb2 import Payload, WorkflowExecution, WorkflowType
1512
from cadence.api.v1.history_pb2 import History, HistoryEvent, WorkflowExecutionStartedEventAttributes
1613
from cadence.api.v1.decision_pb2 import Decision
1714
from cadence.worker._decision_task_handler import DecisionTaskHandler
1815
from cadence.worker._registry import Registry
19-
from cadence.workflow import WorkflowInfo
2016
from cadence.client import Client
2117

2218

tests/cadence/worker/test_decision_worker_integration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from cadence.api.v1.common_pb2 import Payload, WorkflowExecution, WorkflowType
1111
from cadence.api.v1.history_pb2 import History, HistoryEvent, WorkflowExecutionStartedEventAttributes
1212
from cadence.worker._decision import DecisionWorker
13-
from cadence.worker._decision_task_handler import DecisionTaskHandler
1413
from cadence.worker._registry import Registry
1514
from cadence.client import Client
1615

0 commit comments

Comments
 (0)