@@ -71,11 +71,6 @@ class ExpectErrorWhenWorkflowExists(Enum):
71
71
NO = "no"
72
72
73
73
74
- class ExpectUpdateResultInResponse (Enum ):
75
- YES = "yes"
76
- NO = "no"
77
-
78
-
79
74
class UpdateHandlerType (Enum ):
80
75
NON_BLOCKING = "non-blocking"
81
76
BLOCKING = "blocking"
@@ -100,7 +95,6 @@ async def test_non_blocking_update_with_must_create_workflow_semantics(
100
95
UpdateHandlerType .NON_BLOCKING ,
101
96
wait_for_stage ,
102
97
WorkflowIDConflictPolicy .FAIL ,
103
- ExpectUpdateResultInResponse .YES ,
104
98
ExpectErrorWhenWorkflowExists .YES ,
105
99
)
106
100
@@ -117,7 +111,6 @@ async def test_non_blocking_update_with_get_or_create_workflow_semantics(
117
111
UpdateHandlerType .NON_BLOCKING ,
118
112
wait_for_stage ,
119
113
WorkflowIDConflictPolicy .USE_EXISTING ,
120
- ExpectUpdateResultInResponse .YES ,
121
114
ExpectErrorWhenWorkflowExists .NO ,
122
115
)
123
116
@@ -134,10 +127,6 @@ async def test_blocking_update_with_get_or_create_workflow_semantics(
134
127
UpdateHandlerType .BLOCKING ,
135
128
wait_for_stage ,
136
129
WorkflowIDConflictPolicy .USE_EXISTING ,
137
- {
138
- WorkflowUpdateStage .ACCEPTED : ExpectUpdateResultInResponse .NO ,
139
- WorkflowUpdateStage .COMPLETED : ExpectUpdateResultInResponse .YES ,
140
- }[wait_for_stage ],
141
130
ExpectErrorWhenWorkflowExists .NO ,
142
131
)
143
132
@@ -148,7 +137,6 @@ async def _do_test(
148
137
update_handler_type : UpdateHandlerType ,
149
138
wait_for_stage : WorkflowUpdateStage ,
150
139
id_conflict_policy : WorkflowIDConflictPolicy ,
151
- expect_update_result_in_response : ExpectUpdateResultInResponse ,
152
140
expect_error_when_workflow_exists : ExpectErrorWhenWorkflowExists ,
153
141
):
154
142
await self ._do_execute_update_test (
@@ -164,7 +152,6 @@ async def _do_test(
164
152
update_handler_type ,
165
153
wait_for_stage ,
166
154
id_conflict_policy ,
167
- expect_update_result_in_response ,
168
155
)
169
156
170
157
async def _do_execute_update_test (
@@ -254,7 +241,6 @@ async def _do_start_update_test(
254
241
update_handler_type : UpdateHandlerType ,
255
242
wait_for_stage : WorkflowUpdateStage ,
256
243
id_conflict_policy : WorkflowIDConflictPolicy ,
257
- expect_update_result_in_response : ExpectUpdateResultInResponse ,
258
244
):
259
245
update_handler = (
260
246
WorkflowForUpdateWithStartTest .my_blocking_update
@@ -284,10 +270,7 @@ async def _do_start_update_test(
284
270
wait_for_stage = wait_for_stage ,
285
271
start_workflow_operation = start_op ,
286
272
)
287
- with self .assert_network_call (
288
- expect_update_result_in_response == ExpectUpdateResultInResponse .NO
289
- ):
290
- assert await update_handle .result () == "update-result-1"
273
+ assert await update_handle .result () == "update-result-1"
291
274
292
275
@contextmanager
293
276
def assert_network_call (
0 commit comments