File tree Expand file tree Collapse file tree
src/aws_durable_execution_sdk_python Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,6 +186,11 @@ def __init__(
186186 info = log_info ,
187187 )
188188
189+ @property
190+ def durable_execution_arn (self ) -> str :
191+ """Get the durable execution ARN."""
192+ return self .state .durable_execution_arn
193+
189194 # region factories
190195 @staticmethod
191196 def from_lambda_context (
Original file line number Diff line number Diff line change @@ -45,6 +45,16 @@ def test_durable_context():
4545 assert DurableContext is not None
4646
4747
48+ def test_durable_context_exposes_durable_execution_arn ():
49+ """Test that DurableContext exposes durable_execution_arn property."""
50+ mock_state = Mock (spec = ExecutionState )
51+ mock_state .durable_execution_arn = "test-arn"
52+
53+ context = DurableContext (state = mock_state )
54+
55+ assert context .durable_execution_arn == "test-arn"
56+
57+
4858# region Callback
4959def test_callback_init ():
5060 """Test Callback initialization."""
You can’t perform that action at this time.
0 commit comments