@@ -1497,7 +1497,7 @@ async def test_workflow_with_codec(client: Client, env: WorkflowEnvironment):
1497
1497
await test_workflow_signal_and_query (client )
1498
1498
await test_workflow_signal_and_query_errors (client )
1499
1499
await test_workflow_simple_activity (client )
1500
- await test_workflow_update_handlers_happy (client , env )
1500
+ await test_workflow_update_handlers_happy (client )
1501
1501
1502
1502
1503
1503
class PassThroughCodec (PayloadCodec ):
@@ -4273,11 +4273,7 @@ def throws_runtime_err(self) -> None:
4273
4273
raise RuntimeError ("intentional failure" )
4274
4274
4275
4275
4276
- async def test_workflow_update_handlers_happy (client : Client , env : WorkflowEnvironment ):
4277
- if env .supports_time_skipping :
4278
- pytest .skip (
4279
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4280
- )
4276
+ async def test_workflow_update_handlers_happy (client : Client ):
4281
4277
async with new_worker (
4282
4278
client , UpdateHandlersWorkflow , activities = [say_hello ]
4283
4279
) as worker :
@@ -4319,13 +4315,7 @@ async def test_workflow_update_handlers_happy(client: Client, env: WorkflowEnvir
4319
4315
)
4320
4316
4321
4317
4322
- async def test_workflow_update_handlers_unhappy (
4323
- client : Client , env : WorkflowEnvironment
4324
- ):
4325
- if env .supports_time_skipping :
4326
- pytest .skip (
4327
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4328
- )
4318
+ async def test_workflow_update_handlers_unhappy (client : Client ):
4329
4319
async with new_worker (client , UpdateHandlersWorkflow ) as worker :
4330
4320
handle = await client .start_workflow (
4331
4321
UpdateHandlersWorkflow .run ,
@@ -4398,11 +4388,7 @@ async def test_workflow_update_handlers_unhappy(
4398
4388
assert "Rejected" == err .value .cause .message
4399
4389
4400
4390
4401
- async def test_workflow_update_task_fails (client : Client , env : WorkflowEnvironment ):
4402
- if env .supports_time_skipping :
4403
- pytest .skip (
4404
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4405
- )
4391
+ async def test_workflow_update_task_fails (client : Client ):
4406
4392
# Need to not sandbox so behavior can change based on globals
4407
4393
async with new_worker (
4408
4394
client , UpdateHandlersWorkflow , workflow_runner = UnsandboxedWorkflowRunner ()
@@ -4498,13 +4484,7 @@ def got_update(self) -> str:
4498
4484
return self ._got_update
4499
4485
4500
4486
4501
- async def test_workflow_update_before_worker_start (
4502
- client : Client , env : WorkflowEnvironment
4503
- ):
4504
- if env .supports_time_skipping :
4505
- pytest .skip (
4506
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4507
- )
4487
+ async def test_workflow_update_before_worker_start (client : Client ):
4508
4488
# In order to confirm that all started workflows get updates before the
4509
4489
# workflow completes, this test will start a workflow and start an update.
4510
4490
# Only then will it start the worker to process both in the task. The
@@ -4572,13 +4552,7 @@ async def signal(self) -> None:
4572
4552
self ._complete_update = True
4573
4553
4574
4554
4575
- async def test_workflow_update_separate_handle (
4576
- client : Client , env : WorkflowEnvironment
4577
- ):
4578
- if env .supports_time_skipping :
4579
- pytest .skip (
4580
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4581
- )
4555
+ async def test_workflow_update_separate_handle (client : Client ):
4582
4556
async with new_worker (client , UpdateSeparateHandleWorkflow ) as worker :
4583
4557
# Start the workflow
4584
4558
handle = await client .start_workflow (
@@ -4620,14 +4594,7 @@ async def do_update(self, sleep: float) -> None:
4620
4594
await asyncio .sleep (sleep )
4621
4595
4622
4596
4623
- async def test_workflow_update_timeout_or_cancel (
4624
- client : Client , env : WorkflowEnvironment
4625
- ):
4626
- if env .supports_time_skipping :
4627
- pytest .skip (
4628
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4629
- )
4630
-
4597
+ async def test_workflow_update_timeout_or_cancel (client : Client ):
4631
4598
# Confirm start timeout via short timeout on update w/ no worker running
4632
4599
handle = await client .start_workflow (
4633
4600
UpdateTimeoutOrCancelWorkflow .run ,
@@ -4917,14 +4884,7 @@ async def run(self, scenario: FailureTypesScenario) -> None:
4917
4884
await super ().run (scenario )
4918
4885
4919
4886
4920
- async def test_workflow_failure_types_configured (
4921
- client : Client , env : WorkflowEnvironment
4922
- ):
4923
- if env .supports_time_skipping :
4924
- pytest .skip (
4925
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4926
- )
4927
-
4887
+ async def test_workflow_failure_types_configured (client : Client ):
4928
4888
# Asserter for a single scenario
4929
4889
async def assert_scenario (
4930
4890
workflow : Type [FailureTypesWorkflowBase ],
@@ -5305,11 +5265,7 @@ async def get_update_id(self) -> str:
5305
5265
return info .id
5306
5266
5307
5267
5308
- async def test_workflow_current_update (client : Client , env : WorkflowEnvironment ):
5309
- if env .supports_time_skipping :
5310
- pytest .skip (
5311
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5312
- )
5268
+ async def test_workflow_current_update (client : Client ):
5313
5269
async with new_worker (client , CurrentUpdateWorkflow ) as worker :
5314
5270
handle = await client .start_workflow (
5315
5271
CurrentUpdateWorkflow .run ,
@@ -5386,12 +5342,7 @@ async def my_signal_WARN_AND_ABANDON(self):
5386
5342
await self ._do_update_or_signal ()
5387
5343
5388
5344
5389
- async def test_unfinished_update_handler (client : Client , env : WorkflowEnvironment ):
5390
- skip_unfinished_handler_tests_in_older_python ()
5391
- if env .supports_time_skipping :
5392
- pytest .skip (
5393
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5394
- )
5345
+ async def test_unfinished_update_handler (client : Client ):
5395
5346
async with new_worker (client , UnfinishedHandlersWarningsWorkflow ) as worker :
5396
5347
test = _UnfinishedHandlersWarningsTest (client , worker , "update" )
5397
5348
await test .test_wait_all_handlers_finished_and_unfinished_handlers_warning ()
@@ -5628,7 +5579,6 @@ async def my_dynamic_signal(self, name: str, args: Sequence[RawValue]) -> None:
5628
5579
)
5629
5580
async def test_unfinished_handler_on_workflow_termination (
5630
5581
client : Client ,
5631
- env : WorkflowEnvironment ,
5632
5582
handler_type : Literal ["-signal-" , "-update-" ],
5633
5583
handler_registration : Literal ["-late-registered-" , "-not-late-registered-" ],
5634
5584
handler_dynamism : Literal ["-dynamic-" , "-not-dynamic-" ],
@@ -5640,10 +5590,6 @@ async def test_unfinished_handler_on_workflow_termination(
5640
5590
],
5641
5591
):
5642
5592
skip_unfinished_handler_tests_in_older_python ()
5643
- if handler_type == "-update-" and env .supports_time_skipping :
5644
- pytest .skip (
5645
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5646
- )
5647
5593
await _UnfinishedHandlersOnWorkflowTerminationTest (
5648
5594
client ,
5649
5595
handler_type ,
@@ -5857,12 +5803,7 @@ async def my_update(self) -> str:
5857
5803
5858
5804
async def test_update_completion_is_honored_when_after_workflow_return_1 (
5859
5805
client : Client ,
5860
- env : WorkflowEnvironment ,
5861
5806
):
5862
- if env .supports_time_skipping :
5863
- pytest .skip (
5864
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5865
- )
5866
5807
update_id = "my-update"
5867
5808
task_queue = "tq"
5868
5809
wf_handle = await client .start_workflow (
@@ -5915,10 +5856,6 @@ async def test_update_completion_is_honored_when_after_workflow_return_2(
5915
5856
client : Client ,
5916
5857
env : WorkflowEnvironment ,
5917
5858
):
5918
- if env .supports_time_skipping :
5919
- pytest .skip (
5920
- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5921
- )
5922
5859
async with Worker (
5923
5860
client ,
5924
5861
task_queue = "tq" ,
0 commit comments