Skip to content

Commit a3e4821

Browse files
eruvanosyaythomas
authored andcommitted
Fix example test
1 parent 86ae695 commit a3e4821

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/getting-started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,14 @@ pip install aws-durable-execution-sdk-python-testing
168168

169169
```python
170170
import pytest
171+
from aws_durable_execution_sdk_python.execution import InvocationStatus
171172
from my_function import handler
172173

173174
@pytest.mark.durable_execution(handler=handler, lambda_function_name="my_function")
174175
def test_my_function(durable_runner):
175176
with durable_runner:
176177
result = durable_runner.run(input={"data": "test"}, timeout=10)
177-
assert result.status == "SUCCEEDED"
178+
assert result.status == InvocationStatus.SUCCEEDED
178179
```
179180

180181
Run tests without AWS credentials:

0 commit comments

Comments
 (0)