@@ -1486,7 +1486,7 @@ async def test_workflow_with_codec(client: Client, env: WorkflowEnvironment):
1486
1486
await test_workflow_signal_and_query (client )
1487
1487
await test_workflow_signal_and_query_errors (client )
1488
1488
await test_workflow_simple_activity (client )
1489
- await test_workflow_update_handlers_happy (client , env )
1489
+ await test_workflow_update_handlers_happy (client )
1490
1490
1491
1491
1492
1492
class PassThroughCodec (PayloadCodec ):
@@ -4262,11 +4262,7 @@ def throws_runtime_err(self) -> None:
4262
4262
raise RuntimeError ("intentional failure" )
4263
4263
4264
4264
4265
- async def test_workflow_update_handlers_happy (client : Client , env : WorkflowEnvironment ):
4266
- if env .supports_time_skipping :
4267
- pytest .skip (
4268
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4269
- )
4265
+ async def test_workflow_update_handlers_happy (client : Client ):
4270
4266
async with new_worker (
4271
4267
client , UpdateHandlersWorkflow , activities = [say_hello ]
4272
4268
) as worker :
@@ -4308,13 +4304,7 @@ async def test_workflow_update_handlers_happy(client: Client, env: WorkflowEnvir
4308
4304
)
4309
4305
4310
4306
4311
- async def test_workflow_update_handlers_unhappy (
4312
- client : Client , env : WorkflowEnvironment
4313
- ):
4314
- if env .supports_time_skipping :
4315
- pytest .skip (
4316
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4317
- )
4307
+ async def test_workflow_update_handlers_unhappy (client : Client ):
4318
4308
async with new_worker (client , UpdateHandlersWorkflow ) as worker :
4319
4309
handle = await client .start_workflow (
4320
4310
UpdateHandlersWorkflow .run ,
@@ -4387,11 +4377,7 @@ async def test_workflow_update_handlers_unhappy(
4387
4377
assert "Rejected" == err .value .cause .message
4388
4378
4389
4379
4390
- async def test_workflow_update_task_fails (client : Client , env : WorkflowEnvironment ):
4391
- if env .supports_time_skipping :
4392
- pytest .skip (
4393
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4394
- )
4380
+ async def test_workflow_update_task_fails (client : Client ):
4395
4381
# Need to not sandbox so behavior can change based on globals
4396
4382
async with new_worker (
4397
4383
client , UpdateHandlersWorkflow , workflow_runner = UnsandboxedWorkflowRunner ()
@@ -4487,13 +4473,7 @@ def got_update(self) -> str:
4487
4473
return self ._got_update
4488
4474
4489
4475
4490
- async def test_workflow_update_before_worker_start (
4491
- client : Client , env : WorkflowEnvironment
4492
- ):
4493
- if env .supports_time_skipping :
4494
- pytest .skip (
4495
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4496
- )
4476
+ async def test_workflow_update_before_worker_start (client : Client ):
4497
4477
# In order to confirm that all started workflows get updates before the
4498
4478
# workflow completes, this test will start a workflow and start an update.
4499
4479
# Only then will it start the worker to process both in the task. The
@@ -4561,13 +4541,7 @@ async def signal(self) -> None:
4561
4541
self ._complete_update = True
4562
4542
4563
4543
4564
- async def test_workflow_update_separate_handle (
4565
- client : Client , env : WorkflowEnvironment
4566
- ):
4567
- if env .supports_time_skipping :
4568
- pytest .skip (
4569
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4570
- )
4544
+ async def test_workflow_update_separate_handle (client : Client ):
4571
4545
async with new_worker (client , UpdateSeparateHandleWorkflow ) as worker :
4572
4546
# Start the workflow
4573
4547
handle = await client .start_workflow (
@@ -4609,14 +4583,7 @@ async def do_update(self, sleep: float) -> None:
4609
4583
await asyncio .sleep (sleep )
4610
4584
4611
4585
4612
- async def test_workflow_update_timeout_or_cancel (
4613
- client : Client , env : WorkflowEnvironment
4614
- ):
4615
- if env .supports_time_skipping :
4616
- pytest .skip (
4617
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4618
- )
4619
-
4586
+ async def test_workflow_update_timeout_or_cancel (client : Client ):
4620
4587
# Confirm start timeout via short timeout on update w/ no worker running
4621
4588
handle = await client .start_workflow (
4622
4589
UpdateTimeoutOrCancelWorkflow .run ,
@@ -4906,14 +4873,7 @@ async def run(self, scenario: FailureTypesScenario) -> None:
4906
4873
await super ().run (scenario )
4907
4874
4908
4875
4909
- async def test_workflow_failure_types_configured (
4910
- client : Client , env : WorkflowEnvironment
4911
- ):
4912
- if env .supports_time_skipping :
4913
- pytest .skip (
4914
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4915
- )
4916
-
4876
+ async def test_workflow_failure_types_configured (client : Client ):
4917
4877
# Asserter for a single scenario
4918
4878
async def assert_scenario (
4919
4879
workflow : Type [FailureTypesWorkflowBase ],
@@ -5294,11 +5254,7 @@ async def get_update_id(self) -> str:
5294
5254
return info .id
5295
5255
5296
5256
5297
- async def test_workflow_current_update (client : Client , env : WorkflowEnvironment ):
5298
- if env .supports_time_skipping :
5299
- pytest .skip (
5300
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5301
- )
5257
+ async def test_workflow_current_update (client : Client ):
5302
5258
async with new_worker (client , CurrentUpdateWorkflow ) as worker :
5303
5259
handle = await client .start_workflow (
5304
5260
CurrentUpdateWorkflow .run ,
@@ -5375,12 +5331,7 @@ async def my_signal_WARN_AND_ABANDON(self):
5375
5331
await self ._do_update_or_signal ()
5376
5332
5377
5333
5378
- async def test_unfinished_update_handler (client : Client , env : WorkflowEnvironment ):
5379
- skip_unfinished_handler_tests_in_older_python ()
5380
- if env .supports_time_skipping :
5381
- pytest .skip (
5382
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5383
- )
5334
+ async def test_unfinished_update_handler (client : Client ):
5384
5335
async with new_worker (client , UnfinishedHandlersWarningsWorkflow ) as worker :
5385
5336
test = _UnfinishedHandlersWarningsTest (client , worker , "update" )
5386
5337
await test .test_wait_all_handlers_finished_and_unfinished_handlers_warning ()
@@ -5628,11 +5579,11 @@ async def test_unfinished_handler_on_workflow_termination(
5628
5579
"-cancellation-" , "-failure-" , "-continue-as-new-"
5629
5580
],
5630
5581
):
5631
- skip_unfinished_handler_tests_in_older_python ()
5632
- if handler_type == "-update-" and env .supports_time_skipping :
5582
+ if env .supports_time_skipping :
5633
5583
pytest .skip (
5634
- "Java test server : https://github.com/temporalio/sdk-java /issues/1903 "
5584
+ "Issues with update : https://github.com/temporalio/sdk-python /issues/826 "
5635
5585
)
5586
+ skip_unfinished_handler_tests_in_older_python ()
5636
5587
await _UnfinishedHandlersOnWorkflowTerminationTest (
5637
5588
client ,
5638
5589
handler_type ,
@@ -5846,12 +5797,7 @@ async def my_update(self) -> str:
5846
5797
5847
5798
async def test_update_completion_is_honored_when_after_workflow_return_1 (
5848
5799
client : Client ,
5849
- env : WorkflowEnvironment ,
5850
5800
):
5851
- if env .supports_time_skipping :
5852
- pytest .skip (
5853
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5854
- )
5855
5801
update_id = "my-update"
5856
5802
task_queue = "tq"
5857
5803
wf_handle = await client .start_workflow (
@@ -5904,10 +5850,6 @@ async def test_update_completion_is_honored_when_after_workflow_return_2(
5904
5850
client : Client ,
5905
5851
env : WorkflowEnvironment ,
5906
5852
):
5907
- if env .supports_time_skipping :
5908
- pytest .skip (
5909
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5910
- )
5911
5853
async with Worker (
5912
5854
client ,
5913
5855
task_queue = "tq" ,
0 commit comments