Skip to content

Commit 77e6aa6

Browse files
committed
fix: example test
Example test was failing because return type now deserialized.
1 parent e9e71a2 commit 77e6aa6

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

examples/test/test_hello_world.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
from src import hello_world
1010

1111

12-
class TestExamples:
13-
"""Integration tests for examples."""
12+
def test_hello_world():
13+
"""Test hello world example."""
14+
with DurableFunctionTestRunner(handler=hello_world.handler) as runner:
15+
result: DurableFunctionTestResult = runner.run(input="test", timeout=10)
1416

15-
def test_hello_world(self):
16-
"""Test hello world example."""
17-
with DurableFunctionTestRunner(handler=hello_world.handler) as runner:
18-
result: DurableFunctionTestResult = runner.run(input="test", timeout=10)
19-
20-
assert result.status is InvocationStatus.SUCCEEDED # noqa: S101
21-
assert result.result == '"Hello World!"' # noqa: S101
17+
assert result.status is InvocationStatus.SUCCEEDED # noqa: S101
18+
assert result.result == "Hello World!" # noqa: S101

0 commit comments

Comments
 (0)