@@ -195,7 +195,7 @@ async def test_sync_activity(self, mock_client: AsyncMock) -> None:
195195
196196 @pytest .mark .asyncio
197197 async def test_activity_echoes_avro_codec (self , mock_client : AsyncMock ) -> None :
198- avro = pytest .importorskip ("avro" , reason = "avro extra not installed" )
198+ avro = pytest .importorskip ("avro" , reason = "avro package not installed" )
199199 del avro
200200 from durable_workflow import serializer as _ser
201201
@@ -317,7 +317,7 @@ async def test_activity_json_decode_failure_fails_task(self, mock_client: AsyncM
317317
318318 @pytest .mark .asyncio
319319 async def test_activity_avro_decode_failure_fails_task (self , mock_client : AsyncMock ) -> None :
320- pytest .importorskip ("avro" , reason = "avro extra not installed" )
320+ pytest .importorskip ("avro" , reason = "avro package not installed" )
321321 worker = Worker (mock_client , task_queue = "q1" , workflows = [], activities = [echo_activity ])
322322 task = {
323323 "task_id" : "at-bad-avro" ,
@@ -335,7 +335,7 @@ async def test_activity_avro_decode_failure_fails_task(self, mock_client: AsyncM
335335 mock_client .complete_activity_task .assert_not_called ()
336336
337337 @pytest .mark .asyncio
338- async def test_activity_avro_missing_extra_fails_task (
338+ async def test_activity_avro_missing_dependency_fails_task (
339339 self , mock_client : AsyncMock , monkeypatch : pytest .MonkeyPatch
340340 ) -> None :
341341 from durable_workflow import _avro
@@ -344,7 +344,7 @@ async def test_activity_avro_missing_extra_fails_task(
344344 def _raise_missing (_blob : str ) -> None :
345345 raise AvroNotInstalledError (
346346 "The 'avro' package is required to encode/decode payloads with the 'avro' "
347- "codec. Install with: pip install 'durable-workflow[avro]' "
347+ "codec. Reinstall durable-workflow with its runtime dependencies. "
348348 )
349349
350350 monkeypatch .setattr (_avro , "decode" , _raise_missing )
@@ -360,7 +360,7 @@ def _raise_missing(_blob: str) -> None:
360360 await worker ._run_activity_task (task )
361361 mock_client .fail_activity_task .assert_called_once ()
362362 call_kwargs = mock_client .fail_activity_task .call_args .kwargs
363- assert "avro extra" in call_kwargs [ "message" ]. lower () or "pip install " in call_kwargs ["message" ]
363+ assert "runtime dependencies " in call_kwargs ["message" ]
364364 assert call_kwargs ["failure_type" ] == "AvroNotInstalledError"
365365 assert call_kwargs ["non_retryable" ] is True
366366 mock_client .complete_activity_task .assert_not_called ()
@@ -384,7 +384,7 @@ async def test_workflow_json_decode_failure_fails_task(self, mock_client: AsyncM
384384 mock_client .complete_workflow_task .assert_not_called ()
385385
386386 @pytest .mark .asyncio
387- async def test_workflow_avro_missing_extra_fails_task (
387+ async def test_workflow_avro_missing_dependency_fails_task (
388388 self , mock_client : AsyncMock , monkeypatch : pytest .MonkeyPatch
389389 ) -> None :
390390 from durable_workflow import _avro
@@ -393,7 +393,7 @@ async def test_workflow_avro_missing_extra_fails_task(
393393 def _raise_missing (_blob : str ) -> None :
394394 raise AvroNotInstalledError (
395395 "The 'avro' package is required to encode/decode payloads with the 'avro' "
396- "codec. Install with: pip install 'durable-workflow[avro]' "
396+ "codec. Reinstall durable-workflow with its runtime dependencies. "
397397 )
398398
399399 monkeypatch .setattr (_avro , "decode" , _raise_missing )
@@ -410,23 +410,23 @@ def _raise_missing(_blob: str) -> None:
410410 await worker ._run_workflow_task (task )
411411 mock_client .fail_workflow_task .assert_called_once ()
412412 call_kwargs = mock_client .fail_workflow_task .call_args .kwargs
413- assert "avro extra" in call_kwargs [ "message" ]. lower () or "pip install " in call_kwargs ["message" ]
413+ assert "runtime dependencies " in call_kwargs ["message" ]
414414 assert call_kwargs ["failure_type" ] == "AvroNotInstalledError"
415415 mock_client .complete_workflow_task .assert_not_called ()
416416
417417 @pytest .mark .asyncio
418- async def test_workflow_replay_avro_missing_extra_fails_task (
418+ async def test_workflow_replay_avro_missing_dependency_fails_task (
419419 self , mock_client : AsyncMock , monkeypatch : pytest .MonkeyPatch
420420 ) -> None :
421- """Avro-encoded history result that cannot be decoded (extra missing)
421+ """Avro-encoded history result that cannot be decoded (dependency missing)
422422 surfaces as fail_workflow_task, not an unhandled dispatcher exception."""
423423 from durable_workflow import _avro
424424 from durable_workflow .errors import AvroNotInstalledError
425425
426426 def _raise_missing (_blob : str ) -> None :
427427 raise AvroNotInstalledError (
428428 "The 'avro' package is required to encode/decode payloads with the 'avro' "
429- "codec. Install with: pip install 'durable-workflow[avro]' "
429+ "codec. Reinstall durable-workflow with its runtime dependencies. "
430430 )
431431
432432 monkeypatch .setattr (_avro , "decode" , _raise_missing )
0 commit comments