@@ -1494,7 +1494,7 @@ async def test_workflow_with_codec(client: Client, env: WorkflowEnvironment):
14941494 await test_workflow_signal_and_query (client )
14951495 await test_workflow_signal_and_query_errors (client )
14961496 await test_workflow_simple_activity (client )
1497- await test_workflow_update_handlers_happy (client , env )
1497+ await test_workflow_update_handlers_happy (client )
14981498
14991499
15001500class PassThroughCodec (PayloadCodec ):
@@ -4270,11 +4270,7 @@ def throws_runtime_err(self) -> None:
42704270 raise RuntimeError ("intentional failure" )
42714271
42724272
4273- async def test_workflow_update_handlers_happy (client : Client , env : WorkflowEnvironment ):
4274- if env .supports_time_skipping :
4275- pytest .skip (
4276- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4277- )
4273+ async def test_workflow_update_handlers_happy (client : Client ):
42784274 async with new_worker (
42794275 client , UpdateHandlersWorkflow , activities = [say_hello ]
42804276 ) as worker :
@@ -4316,13 +4312,7 @@ async def test_workflow_update_handlers_happy(client: Client, env: WorkflowEnvir
43164312 )
43174313
43184314
4319- async def test_workflow_update_handlers_unhappy (
4320- client : Client , env : WorkflowEnvironment
4321- ):
4322- if env .supports_time_skipping :
4323- pytest .skip (
4324- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4325- )
4315+ async def test_workflow_update_handlers_unhappy (client : Client ):
43264316 async with new_worker (client , UpdateHandlersWorkflow ) as worker :
43274317 handle = await client .start_workflow (
43284318 UpdateHandlersWorkflow .run ,
@@ -4395,11 +4385,7 @@ async def test_workflow_update_handlers_unhappy(
43954385 assert "Rejected" == err .value .cause .message
43964386
43974387
4398- async def test_workflow_update_task_fails (client : Client , env : WorkflowEnvironment ):
4399- if env .supports_time_skipping :
4400- pytest .skip (
4401- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4402- )
4388+ async def test_workflow_update_task_fails (client : Client ):
44034389 # Need to not sandbox so behavior can change based on globals
44044390 async with new_worker (
44054391 client , UpdateHandlersWorkflow , workflow_runner = UnsandboxedWorkflowRunner ()
@@ -4495,13 +4481,7 @@ def got_update(self) -> str:
44954481 return self ._got_update
44964482
44974483
4498- async def test_workflow_update_before_worker_start (
4499- client : Client , env : WorkflowEnvironment
4500- ):
4501- if env .supports_time_skipping :
4502- pytest .skip (
4503- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4504- )
4484+ async def test_workflow_update_before_worker_start (client : Client ):
45054485 # In order to confirm that all started workflows get updates before the
45064486 # workflow completes, this test will start a workflow and start an update.
45074487 # Only then will it start the worker to process both in the task. The
@@ -4569,13 +4549,7 @@ async def signal(self) -> None:
45694549 self ._complete_update = True
45704550
45714551
4572- async def test_workflow_update_separate_handle (
4573- client : Client , env : WorkflowEnvironment
4574- ):
4575- if env .supports_time_skipping :
4576- pytest .skip (
4577- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4578- )
4552+ async def test_workflow_update_separate_handle (client : Client ):
45794553 async with new_worker (client , UpdateSeparateHandleWorkflow ) as worker :
45804554 # Start the workflow
45814555 handle = await client .start_workflow (
@@ -4617,14 +4591,7 @@ async def do_update(self, sleep: float) -> None:
46174591 await asyncio .sleep (sleep )
46184592
46194593
4620- async def test_workflow_update_timeout_or_cancel (
4621- client : Client , env : WorkflowEnvironment
4622- ):
4623- if env .supports_time_skipping :
4624- pytest .skip (
4625- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4626- )
4627-
4594+ async def test_workflow_update_timeout_or_cancel (client : Client ):
46284595 # Confirm start timeout via short timeout on update w/ no worker running
46294596 handle = await client .start_workflow (
46304597 UpdateTimeoutOrCancelWorkflow .run ,
@@ -4914,14 +4881,7 @@ async def run(self, scenario: FailureTypesScenario) -> None:
49144881 await super ().run (scenario )
49154882
49164883
4917- async def test_workflow_failure_types_configured (
4918- client : Client , env : WorkflowEnvironment
4919- ):
4920- if env .supports_time_skipping :
4921- pytest .skip (
4922- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
4923- )
4924-
4884+ async def test_workflow_failure_types_configured (client : Client ):
49254885 # Asserter for a single scenario
49264886 async def assert_scenario (
49274887 workflow : Type [FailureTypesWorkflowBase ],
@@ -5305,11 +5265,7 @@ async def get_update_id(self) -> str:
53055265 return info .id
53065266
53075267
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 ):
53135269 async with new_worker (client , CurrentUpdateWorkflow ) as worker :
53145270 handle = await client .start_workflow (
53155271 CurrentUpdateWorkflow .run ,
@@ -5386,12 +5342,7 @@ async def my_signal_WARN_AND_ABANDON(self):
53865342 await self ._do_update_or_signal ()
53875343
53885344
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 ):
53955346 async with new_worker (client , UnfinishedHandlersWarningsWorkflow ) as worker :
53965347 test = _UnfinishedHandlersWarningsTest (client , worker , "update" )
53975348 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:
56285579)
56295580async def test_unfinished_handler_on_workflow_termination (
56305581 client : Client ,
5631- env : WorkflowEnvironment ,
56325582 handler_type : Literal ["-signal-" , "-update-" ],
56335583 handler_registration : Literal ["-late-registered-" , "-not-late-registered-" ],
56345584 handler_dynamism : Literal ["-dynamic-" , "-not-dynamic-" ],
@@ -5639,11 +5589,6 @@ async def test_unfinished_handler_on_workflow_termination(
56395589 "-cancellation-" , "-failure-" , "-continue-as-new-"
56405590 ],
56415591):
5642- 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- )
56475592 await _UnfinishedHandlersOnWorkflowTerminationTest (
56485593 client ,
56495594 handler_type ,
@@ -5857,12 +5802,7 @@ async def my_update(self) -> str:
58575802
58585803async def test_update_completion_is_honored_when_after_workflow_return_1 (
58595804 client : Client ,
5860- env : WorkflowEnvironment ,
58615805):
5862- if env .supports_time_skipping :
5863- pytest .skip (
5864- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5865- )
58665806 update_id = "my-update"
58675807 task_queue = "tq"
58685808 wf_handle = await client .start_workflow (
@@ -5915,10 +5855,6 @@ async def test_update_completion_is_honored_when_after_workflow_return_2(
59155855 client : Client ,
59165856 env : WorkflowEnvironment ,
59175857):
5918- if env .supports_time_skipping :
5919- pytest .skip (
5920- "Java test server: https://github.com/temporalio/sdk-java/issues/1903"
5921- )
59225858 async with Worker (
59235859 client ,
59245860 task_queue = "tq" ,
0 commit comments